当前位置: 代码迷 >> JavaScript >> 运用JSTL标签 table三列换行
  详细解决方案

运用JSTL标签 table三列换行

热度:54   发布时间:2012-10-09 10:21:45.0
使用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>
  相关解决方案