c:forEach 一行排三个图片然后自动换行

    xiaoxiao2022-06-24  39

    <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 3}"> </tr> </c:if> <!-- end --> </c:forEach> </table> </div> </tr> </table> </body>
    转载请注明原文地址: https://ju.6miu.com/read-1123993.html

    最新回复(0)