jQuery API 返回首页目录 | jQuery API 中英文对照版
height
height()

取得第一个匹配元素当前计算的高度值(px)。

返回值:String

示例:

$("p").height();

HTML 代码:

<p>This is just a test.</p>

结果:

300

 
height()

Get the current computed, pixel, height of the first matched element.

Return value: String
Example:

 $("p").height();  

Before:

 <p>This is just a test.</p>  
Result:
 300  
相关链接
asp之家 | jQuery官方网站 | jQuery中文网 | 电子书作者网站 | 电子书作者blog