Element.clientHeight 可以通过 CSS height + CSS padding - 水平滚动条高度 (如果存在)来计算。
Element.clientHeight
Element.
height
padding
HTMLElement.offsetHeight 是一个只读属性,它返回该元素的像素高度,高度包含该元素的垂直内边距和边框,且是一个整数。
HTMLElement.
offsetHeight
Element.scrollHeight 这个只读属性是一个元素内容高度的度量,包括由于溢出导致的视图中不可见内容。
Element.scrollHeight