答案 0 :(得分:1)
添加样式
的<div class="row"></div>
.row {
width: 100%;
clear: both;
}
所以它会像
<div class="outterDiv">
<div class="innerDiv">
<div class="row">
<div class="item">Item 1</div>
<div class="item">Item 2</div>
<div class="item">Item 3</div>
<div class="item">Item 7</div>
<div class="item">Item 8</div>
<div class="item">Item 9</div>
</div>
<div class="row">
<div class="item">Item 4</div>
<div class="item">Item 5</div>
<div class="item">Item 6</div>
<div class="item">Item 10</div>
<div class="item">Item 11</div>
<div class="item">Item 12</div>
</div>
</div>
</div>
更新了jsfiddle https://jsfiddle.net/69z2wepo/50082