让div不会因为添加了padding而影响了宽高,添加box-sizing:border-box,容器内子元素增加padding,border,容器宽度都不会被撑开
<span style="width:200px;box-sizing:border-box;padding-left:20px;">手续费</span>
让div不会因为添加了padding而影响了宽高,添加box-sizing:border-box,容器内子元素增加padding,border,容器宽度都不会被撑开
<span style="width:200px;box-sizing:border-box;padding-left:20px;">手续费</span>