一行排三个图片 /然后自动换行

来源:互联网 发布:如果你知我苦衷的含义 编辑:程序博客网 时间:2024/05/03 05:30

<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> 

原创粉丝点击