只能用JAVASCRIPT取得
window.width
window.height

解决方案 »

  1.   

    当php程序中需要客户窗口的分辩率时,可以这样 <?php
    if(!$_GET["screenX"]) {
    echo '
    <script>
    location = location.href+"?screenX="+screen.width+"&screenY="+screen.height;
    </script>
    ';
    exit;
    }
    $screenX = $_GET["screenX"];
    $screenY = $_GET["screenY"];
    ?>
    以下是其他内容
      

  2.   

    用JAVASCRIPT取得
    window.width
    window.height   或window.innerWidth
    window.innerHeight时总是显示:undefined(我的IE是6.0)
     photo123(烂柯居士) 请回答...谢谢!!!