<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>
里面有你需要的属性
Screen.PrimaryScreen.Bounds.Height 主显示器的高
Screen.PrimaryScreen.WorkingArea.Height 桌面可用区域的高