内嵌块盒不适合其容器
不知道我做错了什么,我认为通过添加边框,它将整齐地适合那4个盒子。
http://jsfiddle.net/jzhang172/x3ftdx6n/
.ok{width:300px; background:red; height:100px; box-sizing:border-box;}.box{ display:inline-block; box-sizing:border-box; width:25%; border:2px solid blue; height:100%;}
<div class="ok"><div class="box">1</div><div class="box">2</div><div class="box">3</div><div class="box">4</div> </div>
慕妹3242003
ITMISS