Skip to content

Commit 73bd711

Browse files
authored
fix: typo
1 parent b78c313 commit 73bd711

File tree

1 file changed

+3
-3
lines changed
  • 2-ui/1-document/10-size-and-scroll-window

1 file changed

+3
-3
lines changed

2-ui/1-document/10-size-and-scroll-window/article.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,6 @@ alert('当前已从左侧滚动:' + window.pageXOffset);
171171
- 读取当前的滚动:`window.pageYOffset/pageXOffset`。
172172
- 更改当前的滚动:
173173
174-
- `window.scrollTo(pageX,pageY)` — 绝对坐标,
175-
- `window.scrollBy(x,y)` — 相对当前位置进行滚动,
176-
- `elem.scrollIntoView(top)` — 滚动以使 `elem` 可见(`elem` 与窗口的顶部/底部对齐)。
174+
- `window.scrollTo(pageX,pageY)` — 绝对坐标,
175+
- `window.scrollBy(x,y)` — 相对当前位置进行滚动,
176+
- `elem.scrollIntoView(top)` — 滚动以使 `elem` 可见(`elem` 与窗口的顶部/底部对齐)。

0 commit comments

Comments
 (0)