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

innerWidth()

Returns the inner width value (without border) for the first matched element. If used on document, returns the document's Width (innerWidth) If used on window, returns the viewport's (window) width

返回值

Number

示例

jQuery 代码:
$("#testdiv").innerWidth()
结果:
1000
相关链接
asp之家 | jQuery官方网站 | jQuery中文网 | 电子书作者网站 | 电子书作者blog