读书人

运用JSTL标签 table三列换行

发布时间: 2012-10-09 10:21:45 作者: rapoo

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

读书人网 >JavaScript

热点推荐