Screen height 属性

定义和用法
height 属性声明了显示浏览器的屏幕的高度,以像素计。
语法
screen.height
浏览器支持
所有主要浏览器都支持 height 属性
实例
返回你的屏幕的总高度:
<script>
document.write("总高度: " + screen.height);
</script>
更多实例
本例包含了所有的 screen 属性。
<h3>你的屏幕:</h3>
<script>
document.write("总宽度/高度: ");
document.write(screen.width + "*" + screen.height);
document.write("<br>");
document.write("可以宽度/高度: ");
document.write(screen.availWidth + "*" + screen.availHeight);
document.write("<br>");
document.write("颜色深度: ");
document.write(screen.colorDepth);
document.write("<br>");
document.write("颜色分辨率: ");
document.write(screen.pixelDepth);
</script>
