jQuery中height()、innerheight()、outerheight()的区别是什么

1、jQuery 中 height()html

获取匹配元素集合中的第一个元素的当前计算高度值,老是返回内容宽度spa

 

2、jQuery 中 innerheight()orm

包括padding,可是不包括border,即: height + paddinghtm

 

3、jQuery 中 outerheight()get

包括padding,border,即:height + padding + borderit

 

4、jQuery 中 outerheight(true)im

包括padding,border和margin,即: height + padding + border + marginmargin

 


参考资料:jQuery中height()、innerheight()、outerheight()的区别是什么  http://www.studyofnet.com/news/1191.htmltop

相关文章
相关标签/搜索