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

height()

Returns the css height value for the first matched element. If used on document, returns the document's height (innerHeight) If used on window, returns the viewport's (window) height

返回值

Object

示例

jQuery 代码:
$("#testdiv").height()
结果:
"200px"
jQuery 代码:
$(document).height();
结果:
800

jQuery 代码:

$(window).height();
结果:
400
相关链接
asp之家 | jQuery官方网站 | jQuery中文网 | 电子书作者网站 | 电子书作者blog