Chrome 和 IE 在box-sizing 设置不同的值的表现
作者:互联网
默认 box-sizing 是content-box
Chrome IE
width 169 149
offsetWidth 177 153
bounding width 177 153
box-sizing 修改成border-box
Chrome IE
width 177 149
offsetWidth 177 153
bounding width 177 153
可见改成border-box之后,Chrome给出的宽度变成了整体宽度,而IE还是内容区的宽度
标签:box,sizing,153,Chrome,width,177,IE 来源: https://www.cnblogs.com/chenyingzuo/p/13176853.html