Update article.md

This commit is contained in:
Ghost-017 2018-12-05 17:39:28 +08:00 committed by GitHub
parent 2687001ee5
commit afce64b258
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -202,7 +202,7 @@ On the picture below we can see `scrollHeight` and `scrollTop` for a block with
In other words, `scrollTop` is "how much is scrolled up". In other words, `scrollTop` is "how much is scrolled up".
````smart header="`scrollLeft/scrollTop` can be modified" ````smart header="`scrollLeft/scrollTop` can be modified"
Most geometry properties that are read-only, but `scrollLeft/scrollTop` can be changed, and the browser will scroll the element. Most of the geometry properties here are read-only, but `scrollLeft/scrollTop` can be changed, and the browser will scroll the element.
```online ```online
If you click the element below, the code `elem.scrollTop += 10` executes. That makes the element content scroll `10px` down. If you click the element below, the code `elem.scrollTop += 10` executes. That makes the element content scroll `10px` down.