DTD的原因,只需用document.documentElement.scrollTop 替换下即可
但是这种方法存在兼容问题 在ie下好使 chrome则执行不了
最后还是用jquery彻底解决的$(window).scrollTop();