clientWidth/clientHeight: width+ padding
clientLeft/clientTop: 表示内容区域的左上角相对于整个元素左上角的位置(包括边框)。(取决于边框的像数值?)
clientX/clientY: 点击位置距离当前body可视区域的x,y坐标
offsetWidth/offsetHeight:实际获取的是盒模型(width+border + padding)
offsetLeft/offsetTop: 相对于最近的祖先定位元素,offsetTop = top + marginTop
offsetX/offsetY:相对于带有定位的父盒子的x,y坐标
滚动
scrollWidth/scrollHeight: 包括撑起来(或隐藏)的真实高度
scrollTop/scrollLeft: 元素滚动的距离大小
两个方法
getComputedStyle
getBoundingClientRect()