Merge pull request #1597 from javascript-tutorial/paroche-patch-7
Update article.md
This commit is contained in:
commit
d04fbf4daf
1 changed files with 1 additions and 1 deletions
|
@ -268,7 +268,7 @@ Elements have the following geometry properties:
|
||||||
- `offsetParent` -- is the nearest positioned ancestor or `td`, `th`, `table`, `body`.
|
- `offsetParent` -- is the nearest positioned ancestor or `td`, `th`, `table`, `body`.
|
||||||
- `offsetLeft/offsetTop` -- coordinates relative to the upper-left edge of `offsetParent`.
|
- `offsetLeft/offsetTop` -- coordinates relative to the upper-left edge of `offsetParent`.
|
||||||
- `offsetWidth/offsetHeight` -- "outer" width/height of an element including borders.
|
- `offsetWidth/offsetHeight` -- "outer" width/height of an element including borders.
|
||||||
- `clientLeft/clientTop` -- the distance from the upper-left outer corner the inner corner. For left-to-right OS they are always the widths of left/top borders. For right-to-left OS the vertical scrollbar is on the left so `clientLeft` includes its width too.
|
- `clientLeft/clientTop` -- the distances from the upper-left outer corner to the upper-left inner (content + padding) corner. For left-to-right OS they are always the widths of left/top borders. For right-to-left OS the vertical scrollbar is on the left so `clientLeft` includes its width too.
|
||||||
- `clientWidth/clientHeight` -- the width/height of the content including paddings, but without the scrollbar.
|
- `clientWidth/clientHeight` -- the width/height of the content including paddings, but without the scrollbar.
|
||||||
- `scrollWidth/scrollHeight` -- the width/height of the content, just like `clientWidth/clientHeight`, but also include scrolled-out, invisible part of the element.
|
- `scrollWidth/scrollHeight` -- the width/height of the content, just like `clientWidth/clientHeight`, but also include scrolled-out, invisible part of the element.
|
||||||
- `scrollLeft/scrollTop` -- width/height of the scrolled out upper part of the element, starting from its upper-left corner.
|
- `scrollLeft/scrollTop` -- width/height of the scrolled out upper part of the element, starting from its upper-left corner.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue