offset系列

1/offsetWidth 和 offsetHeight 得到对象的宽度和高度(自己的,与他人无关) offsetWidth = width + border + padding div { width:220px; border-left:2px solid red; padding:10px;} div.offsetWidth = 220 + 2 + 20 为什么不用 div.style.wi
相关文章
相关标签/搜索