DOM中的宽高
jQuery中:
.height()?-----------代表元素本身的高度
.innerHeight()?-----------代表元素的高度(包括內容高度height+內邊距padding)
.outerHeight()?-----------代表元素的高度(包括內容高度height+內邊距padding+邊框border)
.outerHeight(true)?-----------代表元素的高度(包括內容高度height+內邊距padding+邊框border+外邊距margin)
width也是基本一樣的。。。
轉載于:https://www.cnblogs.com/crazy-xf/p/9279552.html
總結
- 上一篇: AtCoder - 3954 Pain
- 下一篇: 决策树(Decision Tree)原理