We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b78c313 commit 73bd711Copy full SHA for 73bd711
2-ui/1-document/10-size-and-scroll-window/article.md
@@ -171,6 +171,6 @@ alert('当前已从左侧滚动:' + window.pageXOffset);
171
- 读取当前的滚动:`window.pageYOffset/pageXOffset`。
172
- 更改当前的滚动:
173
174
- - `window.scrollTo(pageX,pageY)` — 绝对坐标,
175
- - `window.scrollBy(x,y)` — 相对当前位置进行滚动,
176
- - `elem.scrollIntoView(top)` — 滚动以使 `elem` 可见(`elem` 与窗口的顶部/底部对齐)。
+ - `window.scrollTo(pageX,pageY)` —— 绝对坐标,
+ - `window.scrollBy(x,y)` —— 相对当前位置进行滚动,
+ - `elem.scrollIntoView(top)` —— 滚动以使 `elem` 可见(`elem` 与窗口的顶部/底部对齐)。
0 commit comments