语法:
取值:
示例:
-
content-box:
.test1{ box-sizing:content-box; width:200px; padding:10px; border:15px solid #eee; }
-
border-box:
.test2{ box-sizing:border-box; width:200px; padding:10px; border:15px solid #eee; }
说明:
设置或检索对象的盒模型组成模式。
- 对应的脚本特性为boxSizing。
兼容性:
支持版本\类型 | |||||
---|---|---|---|---|---|
版本 | 6-7 | 4-18 | 5.1.7 | 9 | 7-12.5 |
版本 | 8 | ||||
版本 | 9 |