Summary of three series js

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/litcangosh/article/details/100201099
  • offset series: Offset
  1.  offsetWidth: Get the width of the element (with border)
  2. offsetHeight: Gets the height of the element (with border)
  3. offsetLeft: Gets the value of the element on the left position
  4. offsetRight: Gets the value of the element on the right location
  • scroll series: curly
  1. scrollLeft: curl upward distance element
  2. scrollTop: element downwardly from the curl
  3. scrollWidth: the width of the element contents (not including the border)
  4. scrollHeight: content element height (not including the border)
  • client: visible region, client
  1. clientWidth: the width of the visible area (padding + content)
  2. clientHeight: highly visible area (padding + content)

3.clientX: abscissa visible region

4.clientY: left vertical visible region

5.clientTop: the visible area on the border

6.clientLeft: do viewable area of ​​the border

Guess you like

Origin blog.csdn.net/litcangosh/article/details/100201099