我有内容居中的 div - 一个图像,但问题是最后一行也是居中的,它打破了“网格效果”
<div class="wrapper">
<div class="iB"></div>
<div class="iB"></div>
<div class="iB"></div>
<div class="iB"></div>
<div class="iB"></div>
<div class="iB"></div>
<div class="iB"></div>
<div class="iB"></div>
<div class="iB"></div>
<div class="iB"></div>
<div class="iB"></div>
<div class="iB"></div>
<div class="iB"></div>
<div class="iB"></div>
<div class="iB"></div>
<div class="iB"></div>
<div class="iB"></div>
<div class="iB"></div>
<div class="iB"></div>
<div class="iB"></div>
<div class="iB"></div>
<div class="iB"></div>
<div class="iB"></div>
<div class="iB"></div>
<div class="iB"></div>
</div>
.wrapper {
width: 100%;
background: red;
text-align: center;
}
.iB {
display:inline-block;
width: 50px;
height: 50px;
background: green;
padding: 2%;
}
演示:http: //jsfiddle.net/puz219/zaBux/
如何将最后一行/行左对齐?
谢谢你先进