JavaScrip-Screen对象

screen对象
有以下的常用的属性
availHeight
availWidth
height
width
例子:
<body>
<script>
    document.write("可用高度:"+screen.availHeight+";可用宽度:"+screen.availWidth);
    document.write("<br/>");
    document.write("实际的高度:"+screen.height+";实际的宽度:"+screen.width);
</script>
</body>

原文地址:https://www.cnblogs.com/YangMT/p/4867255.html