offset系列:獲取元素的寬,高,left,top, offsetParent
offsetWidth:元素的寬,有邊框
offsetHeight:元素的高,有邊框
offsetLeft:元素距離左邊位置的值
offsetTop:元素距離上面位置的值
scroll系列:捲曲出去的值
scrollLeft:向左捲曲出去的距離
scrollTop:向上捲曲出去的距離
scrollWidth:元素中內容的實際的寬(若是內容不多,沒有內容,元素自身的寬),沒有邊框
scrollHeight:元素中內容的實際的高(若是內容不多或者沒有內容,元素自身的高),沒有邊框
client系列:可視區域
clientWidth:可視區域的寬(沒有邊框),邊框內部的寬度
clientHeight:可視區域的高(沒有邊框),邊框內部的高度
clientLeft:左邊邊框的寬度
clientTop :上面的邊框的寬度