网页尺寸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>