Screen availHeight 属性

定义和用法
availHeight 属性声明了显示浏览器的屏幕的可用高度,以像素计。在 Windows 这样的操作系统中,这个可用高度不包括分配给半永久特性(如屏幕底部的任务栏)的垂直空间。
语法
screen.availHeight
浏览器支持
所有主要浏览器都支持 availHeight 属性
实例
实例
返回屏幕的可用高度:
<script>
document.write("可用高度: " + screen.availHeight);
</script>
document.write("可用高度: " + screen.availHeight);
</script>
以上实例输出结果:

更多实例
