这是我的代码:
.column {
column-count: 4;
column-gap: 10px;
-moz-column-count: 4;
-moz-column-gap: 10px;
-webkit-column-count: 4;
-webkit-column-gap: 10px;
}
<div class="column">
<div class="inner">1</div>
<div class="inner">2</div>
<div class="inner">3</div>
<div class="inner">4</div>
<div class="inner">5</div>
<div class="inner">6</div>
<div class="inner">7</div>
<div class="inner">8</div>
<div class="inner">9</div>
<div class="inner">10</div>
<div class="inner">11</div>
<div class="inner">12</div>
</div>
结果是:
1 4 7 10
2 5 8 11
3 6 9 12
我想要的是:
1 2 3 4
5 6 7 8
9 10 11 12
那可能吗?我该怎么做?