1. Offset
offsetWidth: refers to the size of space occupied by an element in the horizontal direction, including the width of the border and scroll bars.
offsetHeight: refers to the size of space occupied by an element in the vertical direction, including the height of the border and scroll bars
offsetLeft: Returns the left offset of the element, that is, the pixel distance between the left outer border of the element and the left inner border containing the element.
offsetTop: Returns the upper offset of the element, that is, the pixel distance between the upper outer border of the element and the upper inner border containing the element.
offsetParent: Returns the most recent dynamically positioned index containing the element, that is, the element's ancestor element
2. Customer area size
clientWidth: refers to the space occupied by the element content (including the inner margin) in the horizontal direction, excluding the width of the border and scroll bar.
clientHeight: refers to the space occupied by the element content (including the inner margin) in the vertical direction, excluding the height of the border and scroll bar.
3. Scroll size
scrollWidth: refers to the actual width of the element content (including the inner margin), including the hidden content width
scrollHeight: refers to the actual height of the element content (including the inner margin), including the hidden content height
scrollLeft: refers to the width of the hidden content on the left side of the element
scrollTop: refers to the height of the hidden content above the element
offsetWidth: refers to the size of space occupied by an element in the horizontal direction, including the width of the border and scroll bars.
offsetHeight: refers to the size of space occupied by an element in the vertical direction, including the height of the border and scroll bars
offsetLeft: Returns the left offset of the element, that is, the pixel distance between the left outer border of the element and the left inner border containing the element.
offsetTop: Returns the upper offset of the element, that is, the pixel distance between the upper outer border of the element and the upper inner border containing the element.
offsetParent: Returns the most recent dynamically positioned index containing the element, that is, the element's ancestor element
2. Customer area size
clientWidth: refers to the space occupied by the element content (including the inner margin) in the horizontal direction, excluding the width of the border and scroll bar.
clientHeight: refers to the space occupied by the element content (including the inner margin) in the vertical direction, excluding the height of the border and scroll bar.
3. Scroll size
scrollWidth: refers to the actual width of the element content (including the inner margin), including the hidden content width
scrollHeight: refers to the actual height of the element content (including the inner margin), including the hidden content height
scrollLeft: refers to the width of the hidden content on the left side of the element
scrollTop: refers to the height of the hidden content above the element