Element.offsetWidh 元素的宽度(border,padding) Element.offsetHeight元素的高度包含(border、padding) 转载于:https://www.cnblogs.com/sy-liu/p/6529621.html