Skip to content

Commit

Permalink
docs: scrollWidth补充说明
Browse files Browse the repository at this point in the history
  • Loading branch information
GauharChan committed Jul 18, 2024
1 parent e524922 commit f81ff18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/js笔记.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ new URLSearchParams(location.search).get("name"); // 蜘蛛侠
1. clientWidth = content + padding
2. offsetWidth = content + border + padding+ 垂直滚动条宽度
3. scrollWidth = content + padding
3. scrollWidth = content + padding + 溢出的尺寸(即超出可视区域的部分)

```js
function getViewport() {
Expand Down

0 comments on commit f81ff18

Please sign in to comment.