1 回答

TA貢獻4條經(jīng)驗 獲得超0個贊
<c:forEach var="a" items="${BOOKS}" setp="4">
????<tr>
????????<c:forEach var="b" items="${BOOKS}" varStatus="status">
????????????<c:if test="${status.index/4==0}">
????????????????<td>
???????????????????? <li></li>
???????????????????? <li></li>
???????????????????? <li></li>
???????????? ????</td>
???????????? </c:if>
????????</c:forEach>
????????<c:forEach var="b" items="${BOOKS}" varStatus="status">
????????????<c:if test="${status.index/4==1}">
????????????????<td>
???????????????????? <li></li>
???????????????????? <li></li>
???????????????????? <li></li>
???????????? ????</td>
???????????? </c:if>
????????</c:forEach>? ?
????????<c:forEach var="b" items="${BOOKS}" varStatus="status">
????????????<c:if test="${status.index/4==2}">
????????????????<td>
???????????????????? <li></li>
???????????????????? <li></li>
???????????????????? <li></li>
???????????? ????</td>
???????????? </c:if>
????????</c:forEach>
????????<c:forEach var="b" items="${BOOKS}" varStatus="status">
????????????<c:if test="${status.index/4==3}">
????????????????<td>
???????????????????? <li></li>
???????????????????? <li></li>
???????????????????? <li></li>
???????????? ????</td>
???????????? </c:if>
????????</c:forEach>
????</tr>
</c:forEach>
不知道對不對
建議用div,省事方便,table布局不多了吧
添加回答
舉報