document.documentElement && document.documentElement.scrollTop

软件发布|下载排行|最新软件

当前位置:首页IT学院IT技术

document.documentElement && document.documentElement.scrollTop

  2020-05-12 我要评论

在标准的浏览器下,需要注意的东西,例如双击自动滚动

var diffY;
if (document.documentElement && document.documentElement.scrollTop)
    diffY = document.documentElement.scrollTop;
else if (document.body)
    diffY = document.body.scrollTop
else
    {/*Netscape stuff*/}

Copyright 2022 版权所有 软件发布 访问手机版

声明:所有软件和文章来自软件开发商或者作者 如有异议 请与本站联系 联系我们