document.documentElement.scrollTop获取当前页面的滚动条纵坐标网页被卷去的高: document.body.scrollTop; 在标准w3c下,document.body.scrollTop恒为0,需要用document.documentElement.scrollTop来代替;如果你想定位鼠标相对于页面的绝对位置时,你会发现google里面1000篇文章里面有999.99篇会让你使用 event.clientX+document.body.scrollLeft,event.clientY+document.body.scrollTop, 如果你发现你的鼠标定位偏离了你的想象,请不要奇怪,这是再正常不过的事情。ie5.5之后已经不支持document.body.scrollX对象了。所以在编程的时候,请加上这样的判断if (document.body && document.body.scrollTop && document.body.scrollLeft){top=document.body.scrollTop;left=document.body.scrollleft; }if (document.documentElement && document.documentElement.scrollTop && document.documentElement.scrollLeft){top=document.documentElement.scrollTop;left=document.documentElement.scrollLeft;}