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>

posted @ 2015-10-10 15:41  杨MT  阅读(186)  评论(0编辑  收藏  举报