jQuery API | 返回首页目录 | jQuery API 中英文对照版 |
height |
height()
取得第一个匹配元素当前计算的高度值(px)。 返回值:String 示例: $("p").height(); HTML 代码: <p>This is just a test.</p> 结果: 300 Get the current computed, pixel, height of the first matched element. Return value: String $("p").height(); Before: <p>This is just a test.</p>Result: 300 |