jquery中innerWidth(),outerWidth(),outerWidth(true)和width()的区别

参考资料:https://www.cnblogs.com/keyi/p/5933981.html 

var a = 元素本身的宽度;

width() = a;

innerWidth() = a+padding;

outerWidth() = a+padding+border;

outerWidth(true) = a+padding+border+margin;

 

posted @ 2022-12-06 22:20  轻风细雨_林木木  阅读(3)  评论(0编辑  收藏  举报