Window.pageYOffset

只读属性pageYOffsetscrollY 的别名。

规范

Specification Status Comment
CSS Object Model (CSSOM) View Module
window.pageYOffset
Working Draft  

浏览器支持

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help! (en-US)

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support (Yes) (Yes) 9 (Yes) (Yes)
Feature Android Android Webview Firefox Mobile (Gecko) Firefox OS IE Mobile Opera Mobile Safari Mobile Chrome for Android
Basic support ? ? (Yes) (Yes) ? ? ? (Yes)

相关链接