.box{
width: 200px;
height: 200px;
padding:20px;
border:5px solid red;
background-color:#eee;
}
<div class="box">
</div>
border-box width,height设置的是盒子的宽高,content区域自动缩小
content-box 默认模式,width,height 设置的是 content区的宽高