做2个网页吧
   if(screen.width == 1024){
.........
}
   if(screen.width == 800){
.........
}

解决方案 »

  1.   

    谢谢.我想请问一个用表格对层定位怎么样定位啊.
     redtank2005(菜鸟) 有没有更简介的办法啊.
      

  2.   

    同意上面的,用表格,在里面加入层,定义成相对的位置。
    <div id="Layer1" style="position:relative;  width:527px; height:309px; z-index:1;">
      

  3.   

    if(screen.width == 1024){
    .........
    }
       if(screen.width == 800){
    .........
    }
    不行,它说Microsoft VBScript 运行时错误 错误 '800a01a8' 缺少对象: '' /index.asp,行 35 
      

  4.   

    在vbscript里面判断屏幕分辩率的语句是什么啊.
      

  5.   

    不知道这样行不行,我层不熟啊
    <div id="Layer1" style="position:relative;  width:527px; height:309px; z-index:1; left: 0px; top: 0px">
      

  6.   

    <% @language="vbscript" %> 
        <% 
          Select case Request.SERVERVARIABLES("HTTP_UA_PIXELS") 
             Case "800X600" 
                Response.Redirect "800.htm" 
             Case "640X480" 
                Response.Redirect "640.htm" 
             Case "1024X768" 
                Response.Redirect "1024.htm" 
          End Select 
        %> 
      

  7.   

    好像不行,你用javascript的screen.width 判断吧
      

  8.   

    <body>
    <table width="100%" height="100%" cellpadding=0 cellspacing=0 border=1>
    <tr height="100%">
    <td width="100%" height="100%" align="center">
    <table width="800px" height="400px" border=1>
    <tr>
    <td>内容写在这里边</td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </body>
      

  9.   

    redtank2005(菜鸟) 谢谢你,已经做好了。我刚上CSDN不久,还不知道怎么样给你分,等下我问我朋友怎样给分,到时给你分啊。