window,window.screen,window.document.body,window.document.documentElement及它们与尺寸、位置相关的属性
window
| innerHeight | Sets or returns the inner height of a window's content area |
| innerWidth | Sets or returns the inner width of a window's content area |
| outerHeight | Sets or returns the outer height of a window, including toolbars/scrollbars |
| outerWidth | Sets or returns the outer width of a window, including toolbars/scrollbars |
| pageXOffset | Returns the pixels the current document has been scrolled (horizontally) from the upper left corner of the window |
| pageYOffset | Returns the pixels the current document has been scrolled (vertically) from the upper left corner of the window |
| screenLeft | Returns the x coordinate of the window relative to the screen,not supported in Firefox |
| screenTop | Returns the y coordinate of the window relative to the screen,not supported in Firefox |
| screenX | Returns the x coordinate of the window relative to the screen,not supported in IE |
| screenY | Returns the y coordinate of the window relative to the screen,not supported in IE |
window.screen
下面的属性值都和浏览器无关,是电脑本身的设置
window.document.body
Returns the body element of the document
window.document.documentElement
Returns the Document Element of the document (the HTML element)

浙公网安备 33010602011771号