<tr>
<c:if test="${not empty properList}">
<c:forEach var="object" items="${properList}" varStatus="status">
<c:if test="${(status.index+1) mod 3 !=1}">
<td noWrap class="td_title" width="8%" align="center">${object.propertyName }</td>
<td class="td_detail">
<input type="text" id="${object.propertyName }" name="${object.propertyName }" />
</td>
</c:if>
<c:if test="${(status.index+1) mod 3==1}">
<tr>
<td noWrap class="td_title" width="8%" align="center">${object.propertyName }</td>
<td class="td_detail">
<input type="text" id="${object.propertyName }" name="${object.propertyName }" />
</td>
</c:if>
</c:forEach>
</c:if>
</tr>
c:forEach实现每三个换行
最新推荐文章于 2022-05-05 21:42:11 发布