网页尺寸offsetHeight

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
 <script type="text/javascript">
var w= document.documentElement.offsetWidth
   
var h= document.documentElement.offsetHeight
   
</script>
</body>
</html>

posted @ 2017-11-11 20:36  红树叶  阅读(116)  评论(0编辑  收藏  举报