HBCMS更多的中文手册参考:

clientHeight参数属性

DHTML文档教程

Retrieves the height of the object including padding, but not including margin, border, or scroll bar.

dhtml语法

HTMLN/A
Scripting[ iHeight = ] object.clientHeight

DHTML可能的值

iHeightInteger that receives the height of the object, in pixels.

The property is read-only. The property has no default value.

DHTML代码范例

This example shows how the clientHeight property and the offsetheight property measure document height differently. the height of the div is set to 100, and this is the value retrieved by the offsetheight property, not the clientheight property.

<div id=odiv style="overflow:scroll; width:200; height:100"> . . . </DIV>
<BUTTON onclick="alert(oDiv.clientHeight)">client height</BUTTON>
<BUTTON onclick="alert(oDiv.offsetHeight)">offset heightY</BUTTON>
This feature requires Microsoft® Internet Explorer 4.0 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

是否符合公共标准

There is no public standard that applies to this property.

Applies To

A, ADDRESS, APPLET, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, CUSTOM, DD, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FORM, hn, HTML, I, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, META, NOBR, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, XMP

更多语法参考

Measuring Element Dimension and Location