我的程序asp.net全部都是用框架构成,但在部署中遇到一个问题,就是页面大小不能适应屏幕大小,页面变形(right.aspx),影响用户的操作。请问大家是如何解决的。特别急,用了很多办法了,都没有解决。。

解决方案 »

  1.   

    可以在用javascript来控制客户端显示屏像素!!!只有设置符合要求才能登录系统!!!
    function openwins()
    {
    var windowW = window.screen.width;
    var windowH = window.screen.height;
    if(windowW != "1024" || windowH != "768")
    {
    window.alert("请将显示器分辨率设置为(1024*768)然后再进入本系统!");
    }
    }
      

  2.   

    http://community.csdn.net/Expert/topic/3653/3653889.xml?temp=.8031427
      

  3.   

    <%@ page contentType="text/html; charset=gb2312"%>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <meta name="ROBOTS" content="none">
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <link href="Images/STYLE.CSS" rel=stylesheet type=text/css>
    <title>人民医院----后台管理</title>
    <SCRIPT>
        function switchSysBar(){
          if (switchPoint.innerText==3){
            switchPoint.innerText=4
            document.all("frmTitle").style.display="none"
          }else{
            switchPoint.innerText=3
            document.all("frmTitle").style.display=""
          }
        }
    </SCRIPT>
    </head>
    <BODY scroll="no"style="MARGIN:0px">
    <TABLE border=0 cellPadding=0 cellSpacing=0 height=100% width=100%>
    <TR>
       <TD align=middle id=frmTitle noWrap vAlign=center>
         <IFRAME frameBorder=0 name=menu scrolling=auto src="Left.jsp" style="HEIGHT:100%;VISIBILITY:inherit;WIDTH:180px;Z-INDEX:2"></IFRAME>
       </TD>
       <TD bgColor=8FAFEF>
          <TABLE border=0 cellPadding=0 cellSpacing=0 height=100%>
            <tr>
          <TD onclick=switchSysBar() style=HEIGHT:100%>
                  <font style=COLOR:white;CURSOR:hand;FONT-FAMILY:Webdings;FONT-SIZE:9pt>
                  <SPAN id=switchPoint onmouseover="this.style.color='ffdd00'" onmouseout="this.style.color='000000'">3</SPAN>
                  </font>
          </TD>
    <tr>
          </TABLE>
       </td>
       <TD style=WIDTH:100%>
             <IFRAME frameBorder=0 id=main name=main scrolling=yes src=main.jsp style=HEIGHT:100%;VISIBILITY:inherit;WIDTH:100%;Z-INDEX:1></IFRAME>
       </td>
    </TR>
      </TABLE>
    </BODY>
    </html>我的是这么做的
      

  4.   

    http://community.csdn.net/Expert/topic/3653/3653889.xml?temp=.8031427我也遇到相同的问题,请教如何使解决这个问题,您能不能帮我写一个
      ________________________
      |____上__________________
      |左| 
      |  |  右
      |  |
      |  |
    的框架呢?我总不能适应屏幕大小?
      

  5.   

    演练:部署 Web 解决方案
    http://msdn.microsoft.com/library/chs/default.asp?url=/library/chs/vsintro7/html/vbtskDeployingWebSolution.asp参照
    http://www.itonline.gd.cn/ittech/list.asp?id=617
    http://blog.csdn.net/younther/archive/2004/06/16/20185.aspx