table的横向排序

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/sunshinedark/article/details/80762777

我很难更新的博客

1.

<table>

<c:forEach var="item" items="items" varStatus="status">

<c:if test="${status.index%3==0}">

<tr>

</c:if>

<td>

<c:out value="${name}"/>

</td>

<c:if test="${status.index%3==2}">

</tr>

</c:if>

</c:forEach>

</table>

猜你喜欢

转载自blog.csdn.net/sunshinedark/article/details/80762777