如果让offestwidth=100px该怎么做?
box-sizing:border-box;
这个100使包括内容宽度、内边距、边框。
代码查看offestwidth->document.getElementById('div').offsetwidth
如果让offestwidth=100px该怎么做?
box-sizing:border-box;
这个100使包括内容宽度、内边距、边框。
代码查看offestwidth->document.getElementById('div').offsetwidth