client group, offset group, scroll group

clientWidth: Get the width of the element, including padding.
clientHeight:

offsetWidth: Get the width of the element, including padding and border.
the offsetHeight:
the offsetParent: Obtain the parent element node element, if the parent element is not located, then the node returns body.
offsetLeft: Get the left positioning element to the parent element distance. If no parent element is positioned, with respect to the body.
offsetTop:

scrollHeight: element scrollable area height (the parent element contains a child element, the child element is the height value),
scrollWeight:
scrollTop: Get out of the top of the parent element of the element distance,
the scrollLeft:
when scrollHeight - when scrollTop = clientHeight, presentation element rolling the vertical direction in the end, the same way the horizontal direction.

Published 46 original articles · won praise 7 · views 4520

Guess you like

Origin blog.csdn.net/weixin_44343449/article/details/104405166