盒模型分两种:css
借助css3的 box-sizing 属性可切换盒模型:css3
box-sizing: border-box; /*IE盒模型*/ box-sizing: content-box; /*W3C盒模型*/