咨询一个 getBoundingClientRect 的问题
yof 2008-12-13 03:38:46 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 //EN">
<html>
<body style="margin:0px;border:0px">
<script type='text/javascript'>
var b = document.body.getBoundingClientRect();
document.write("body.left="+b.left+",body.top="+b.top);
</script>
</body>
</html>
上面的代码为什么在 IE 上 getBoundingClientRect 返回的 left和top为 2, 而在其他浏览器 返回0