jQuery API jQuery API 中英文对照版 - jQuery在线查询手册
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