1. block包含inline-block的时候, inline-block 没有内容的时候,会根据 font 产生一个 line-height 来产生一个空白块。
解决方法:
1 <div class="parent" style="font-size: 0;"> 2 <div style="display: inline-block;"> 3 </div>