尽量不要用绝对值就可以了,特别是table的宽度
如<table width=80%>

解决方案 »

  1.   

    我想这样做:但没有用!请问Request.ServerVariables["HTTP_UA_PIXELS"];用法对嘛?
    <script runat="server" language="C#">
    public void Page_Load(Object Sender, EventArgs E)
    {
    string userie = Request.ServerVariables["HTTP_UA_PIXELS"];
    switch(userie)
    {
    case "800X600":
    Response.Redirect("800.aspx");
    break;
    case "1024X768":
    Response.Redirect("1024.aspx");
    break;
    default:
    Response.Redirect("1024.aspx");
    break;
    }
    }
    </script>请高手之教!!谢谢了!
      

  2.   

    客户端通过javascript:window.screen.width和window.screen.height
      

  3.   

    这样不是每个页面都要做几个?最好还是用table设置width为百分比吧
      

  4.   

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
    <title></title>
    <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
    <meta name=ProgId content=VisualStudio.HTML>
    <meta name=Originator content="Microsoft Visual Studio .NET 7.1">
    <script language=javascript>
    function control()
    {

    if(window.screen.width==800)
    {
    window.open("800.aspx","_self");
    }
    else if(window.screen.width==1024)
    {
    window.open("1024.htm","_self");
    }
    else
    {
    window.open("others.aspx","_self");
    }
    }
    </script>
    </head>
    <body onload="javascript:control()">
    </body>
    </html>
      

  5.   

    客户端通过javascript获得后保存传回服务器<script>
    document.all("TextBox1").value = window.screen.height;
    document.all("TextBox2").value = window.screen.width;
    </script>
      

  6.   

    先做一个“先头的页面”用js 的window.screen.width来判断出客户端的分辨率,然后根据这个值判断下一页转向你的哪一套页面。(难道你做了两套页面吗?1024和800的,但是你有没有想过其他分辨率的情况?)