网页高度问题
这节跟前面那一节有什么区别?
为什么我这里结果网页高度才为8?
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<script type="text/javascript">
var a = document.documentElement.scrollWidth||document.body.scrollWidth;
var s = document.documentElement.scrollHeight||document.body.scrollHeight;
document.write("网页宽度为" + a + "网页高度为" + s);
</script>
</body>
</html>