Skip to content

Commit

Permalink
closes #1949
Browse files Browse the repository at this point in the history
  • Loading branch information
iliakan committed Jun 7, 2020
1 parent 020f2ea commit d35baee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 2-ui/1-document/09-size-and-scroll/article.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ If you click the element below, the code `elem.scrollTop += 10` executes. That m
<div onclick="this.scrollTop+=10" style="cursor:pointer;border:1px solid black;width:100px;height:80px;overflow:auto">Click<br>Me<br>1<br>2<br>3<br>4<br>5<br>6<br>7<br>8<br>9</div>
```

Setting `scrollTop` to `0` or `Infinity` will make the element scroll to the very top/bottom respectively.
Setting `scrollTop` to `0` or a big value, such as `1e9` will make the element scroll to the very top/bottom respectively.
````
## Don't take width/height from CSS
Expand Down

0 comments on commit d35baee

Please sign in to comment.