SystemParametersInfo(SPI_GETWORKAREA, 0, @trDeskRect, 0);
    nDeskWidth := trDeskRect.Right - trDeskRect.Left;
    nDeskHeight := trDeskRect.Bottom - trDeskRect.Top;

解决方案 »

  1.   

    <script>
    document.write("你的分辨率"+screen.width+"*"+screen.height)
    </script> 
      

  2.   

    我想用php 得到,怎么实现
    回复人: wwwwwwww(我我) 
    请你说的清楚点
      

  3.   

    PHP直接实现不行,因为PHP程序运行在服务器端,不知道客户端的分辨率的,除非你用js找到后递交上去...
      

  4.   

    js 探出分辨率再转到一个新页面,比方说 test.php?mode=800 ……
      

  5.   

    SystemParametersInfo(SPI_GETWORKAREA, 0, @trDeskRect, 0);
        nDeskWidth := trDeskRect.Right - trDeskRect.Left;
        nDeskHeight := trDeskRect.Bottom - trDeskRect.Top; 
      

  6.   

    我倒~用js提交不就得啦~唉<input type=hidden name=screenwidth><script>
    screenwidth = screen.width;
    </script>
      

  7.   

    回复人: hnxyy(大师) (2001-12-21 11:47:12)  得0分 
    SystemParametersInfo(SPI_GETWORKAREA, 0, @trDeskRect, 0);
        nDeskWidth := trDeskRect.Right - trDeskRect.Left;
        nDeskHeight := trDeskRect.Bottom - trDeskRect.Top;  
    写清楚一些好不好?
    这样怎么用
    谢谢,也许我太笨了