日期:2014-05-16  浏览次数:20345 次

使用JSTL标签 table三列换行
<table width="90%" border="0" cellspacing="3" cellpadding="3" align="center"  id="_ga1">
                  <tr>
                     <c:forEach var="g" items="${gamecome}" varStatus="st">
                                 <td>
                                    <a href="<%=request.getContextPath() %>/article/showGameTypes.do?pid=${g.sourceType.id }"> ${g.name }</a>
                                 </td>
                               <c:if test="${(st.count % 3) eq '0'}"></tr></c:if>
                             </c:forEach>
                             <tr>
                 </tr>   
                  </table>