scrollHeigh:元素內容的全部高度,包括content、溢出的content、padding、僞元素。不包括元素的border和margin。
clientHeight:元素的可見部分高度,包括content、padding。不包括元素的border和margin。
offsetHeight:元素的實際佔據高度,包括content、padding、border、滾動條。不包括僞元素。
scrollHeigh:元素內容的全部高度,包括content、溢出的content、padding、僞元素。不包括元素的border和margin。
clientHeight:元素的可見部分高度,包括content、padding。不包括元素的border和margin。
offsetHeight:元素的實際佔據高度,包括content、padding、border、滾動條。不包括僞元素。