<table class="table" width="1169" layoutH="138">
<thead>
<tr>  <th width="300" orderField="levelCode" <c:if test="${ pageModel.orderField=='levelCode'}">class="${pageModel.orderDirection}"</c:if>">层次代码</th>
<th width="300" orderField="levelName" <c:if test="${ pageModel.orderField=='levelName'}">class="${pageModel.orderDirection}"</c:if>">层次名称</th>
<th width="300" >备注</th>
<c:if test="${!empty(userId) and empty(loginUser.collegeId)}">
<th width="150">操作</th>
</c:if>
</tr>
</thead>
<tbody>
<c:forEach items="${pageModel.list}" var = "item">
<tr target="sid_level" rel="${item.id}">
<td>${item.levelCode}</td>
<td>${item.levelName}</td>
<td>${item.re}</td>
<c:if test="${!empty(userId) and empty(loginUser.collegeId)}">
<td>
<a class="btnDel" title="删除"  href="${contextPath }/level/deleteLevelAction.do?level.id=${item.id}" target="ajaxTodo" ><span>删除</span></a>
<a title="编辑" class="btnEdit"  target="dialog" mask="true" href="${contextPath }/level/showUpdateLevelAction.do?level.id=${item.id}"><span>修改</span></a>
</td>
</c:if>
</tr>
</c:forEach>
</tbody>
</table>直接上代码

解决方案 »

  1.   

    <th >  也不需要循环啊。
      

  2.   

    <th>标签通常和<thead>对应,作为表头,所以一般不参与循环,<td>则和<tbody>相关
      

  3.   

    <th > 是做表头  不要循环   <td>是表内容   是要循环的 对吗
      

  4.   

    <th > 是做表头  不要循环   <td>是表内容   是要循环的 对吗
      

  5.   

    ]<th > 是做表头  不要循环   <td>是表内容   是要循环的 对吗
      

  6.   

    ]<th > 是做表头  不要循环   <td>是表内容   是要循环的 对吗是的,是的,是的,是的...