<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<script type="text/javascript">
var w=document.documentELement.scrollWidth
||document.body.scrollWidth;
var h=document.documentElement.scrollHeight
||document.body.scrollHeight;
document.write(w+"*"+h);
</script>
</body>
</html>
上面的给力,我找了半天没答案
var w=document.documentELement.scrollWidth||document.body.scrollWidth;的第一个Element大写了