screen.height; 
screen.width; 
显示的是显示屏幕的宽度和高度是根据你分辨率来决定的

解决方案 »

  1.   

    支持firefox或则别的浏览器吗?
      

  2.   

    谁装的firefox帮我试一下.马上给分
      

  3.   

    在火狐下alert一下这两个值看看不就知道了
      

  4.   

    3Q,,那我就有办法对付宽屏用户和窄屏用户了,哈哈
    fs.style.width = screen.width - 150;
      

  5.   

    alert("screen.width: "+screen.width+"\r\nscreen.height: "+screen.height);在我的电脑上经测试IE7、FF3、Opera9、Safari3、Chrome0.2.149.27 的执行结果都是
    screen.width: 1152
    screen.height: 864