<script type="text/vbscript">
document.write "Screen resolution: " & window.screen.width & "X" & window.screen.height & "X" & window.screen.colorDepth & "bits"
document.write "<br>Available resolution:  " & window.screen.availWidth & "X" & window.screen.availHeight
</script>

解决方案 »

  1.   

    不好意思,没说清楚,我是在窗体程序中运用的..不是web程序
      

  2.   

    查看screen以及netscreen
    里面有你需要的属性
      

  3.   

    Screen.PrimaryScreen.Bounds.Width  主显示器的宽
    Screen.PrimaryScreen.Bounds.Height 主显示器的高
      

  4.   

    Screen.PrimaryScreen.WorkingArea.Width  桌面可用区域的宽
    Screen.PrimaryScreen.WorkingArea.Height 桌面可用区域的高