DOM中的宽高

jQuery中:

.height() -----------代表元素本身的高度

.innerHeight() -----------代表元素的高度(包括内容高度height+内边距padding)

.outerHeight() -----------代表元素的高度(包括内容高度height+内边距padding+边框border)

.outerHeight(true) -----------代表元素的高度(包括内容高度height+内边距padding+边框border+外边距margin)

width也是基本一样的。。。

posted @ 2018-07-08 11:32  花椒、斯国一  阅读(110)  评论(0编辑  收藏  举报