We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如果使用$('body').scrollTop() 获取的值是0,谷歌Translate翻译插件就是这样失效的。 使用documentElement || body 来兼容。
let scrollTop = document.documentElement.scrollTop || document.body.scrollTop
或者使用
$(window).scrollTop()
之前使用$('body').scrollTop() 的插件,需要修改了
The text was updated successfully, but these errors were encountered:
今天刚改了这么个问题。
Sorry, something went wrong.
昨天那纳闷呢,之前是没问题。感谢提醒
Thanks
为什么不用 window.pageYOffset 呢
No branches or pull requests
如果使用$('body').scrollTop() 获取的值是0,谷歌Translate翻译插件就是这样失效的。
使用documentElement || body 来兼容。
或者使用
之前使用$('body').scrollTop() 的插件,需要修改了
The text was updated successfully, but these errors were encountered: