首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

foreach 循环三列 自动换行

2012-12-19 
foreach 循环3列 自动换行table width90% border0 cellspacing3 cellpadding3 aligncenter

foreach 循环3列 自动换行

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

热点排行