盒模型
盒模型的属性有:
margin:外边距
padding:内边距
boder: 边框
content: 内容
盒模型分为:
标准盒模型和IE盒模型
在标准盒模型中,width和height是指content的宽和高。
在IE盒模型中,width和height是指content、padding和border的总和。
boxSizng
通过boxSizing可以设置通过什么样的盒模型来操作width和height
可以通过content-box来设置content的width和height
可以通过border-box来设置IE盒模型的width和height