Last active
September 17, 2015 03:00
-
-
Save xincici/4f7fdd5481555c664e8b to your computer and use it in GitHub Desktop.
关于网页宽高
This file contains 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
网页可见区域宽:window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth | |
网页可见区域高:window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight | |
文档高度:document.body.scrollHeight | |
文档被滚动高度:document.body.scrollTop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment