Last active
May 11, 2016 09:12
-
-
Save the1sky/1c08c2a10f289b31185ea9bd519da3c2 to your computer and use it in GitHub Desktop.
获取页面的scrollTop
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var scrollTop = window.pageYOffset //用于FF | |
|| document.documentElement.scrollTop | |
|| document.body.scrollTop | |
|| 0; | |
see at: http://www.cnblogs.com/ckmouse/archive/2012/01/30/2332070.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment