clientWidth,clientHeight:
包括内容区和内边距,不带px,可计算,只读,不能修改
offsetWidth,offsetHeight:
包括边框(滚动条宽度或高度),内边距,内容区,带px,只读
offsetTop:
当前元素顶部距离最近父元素顶部的距离,带px,只读。
scrollHeight,scrollWidth:
滚动条滚动距离
scrollTop,scrollLeft:
滚动条往下滚的距离,有px,可读
clientWidth,clientHeight:
包括内容区和内边距,不带px,可计算,只读,不能修改
offsetWidth,offsetHeight:
包括边框(滚动条宽度或高度),内边距,内容区,带px,只读
offsetTop:
当前元素顶部距离最近父元素顶部的距离,带px,只读。
scrollHeight,scrollWidth:
滚动条滚动距离
scrollTop,scrollLeft:
滚动条往下滚的距离,有px,可读