- body style="margin:0px">
- <table width="100%" border="0">
- <tr>
- <div id="xlxka">
- <table bgcolor="red" width="100%">
- <bean:size name="list_zdy" id="count"/>
- <c:forEach var="one" items="${list_zdy}" varStatus="cou">
- <!-- begin -->
- <c:if test="${cou.count eq 1 || (cou.count-1) % 3 eq 0}">
- <tr>
- </c:if>
- <td>
- <table width="33%">
- <tr>
- <td width="100%" height=25>
- ${one.mc}
- </td>
- </tr>
- </table>
- </td>
- <c:if test="${cou.count % 3 eq 0 || cou.count eq count}">
- </tr>
- </c:if>
- <!-- end -->
- </c:forEach>
- </table>
- </div>
- </tr>
- </table>
- </body>
c:forEach 一行排三个图片然后自动换行
最新推荐文章于 2021-03-09 20:46:06 发布