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

一、jQuery 中 height()

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

 

二、jQuery 中 innerheight()

包括padding,但是不包括border,即: height + padding

 

三、jQuery 中 outerheight()

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

 

四、jQuery 中 outerheight(true)

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

 


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


转载于:https://my.oschina.net/u/2428791/blog/655084

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值