我想制作 3 列并将last
类添加到第三列。我试过这段代码:
<?php for ($i = 0; $i < 9; $i = $i + 4) { //can't touch this line ?>
<?php for ($j = $i; $j < ($i + 4); $j++) { //can't touch this line ?>
<?php $counter=0; ?>
<div class="span-5<?php if ($counter % 3 == 0) { echo " last"; } ?>">
Info
</div>
<?php } ?>
<?php } ?>
但这无济于事。(它将last
类分配给第二列)