先看DHTML手册的解释
clientHeight:
Retrieves the height of the object including padding, but not including margin, border, or scroll bar.
offsetHeight:
Retrieves the height of the object relative to the layout or coordinate parent, as specified by the offsetParent property.
scrollHeight:
Retrieves the scrolling height of the object.
下面是示例及说明: