style.width:样式宽(content内容宽) clientWidth:可视区宽(样式宽+padding) offsetWidth:占位宽(样式宽+padding+border) 转载于:https://www.cnblogs.com/yuxingyoucan/p/5700964.html