1、w3c盒模型(标准盒模型)
width:content的宽度
height:content的高度
css中设置标准盒模型方法:
box-sizing: content-box
2、IE盒模型(怪异盒模型)
width:content宽度+padding内边距+border宽度
height:content高度+padding内边距+border高度
css中设置怪异盒模型方法:
box-sizing: border-box
1、w3c盒模型(标准盒模型)
width:content的宽度
height:content的高度
css中设置标准盒模型方法:
box-sizing: content-box
2、IE盒模型(怪异盒模型)
width:content宽度+padding内边距+border宽度
height:content高度+padding内边距+border高度
css中设置怪异盒模型方法:
box-sizing: border-box