横向循环
如果遍历里面有10个数据的话
我想实现里面的 表格每行显示4个,。
然后在向下循环
请问怎么实现啊
<table width= "44% " border= "0 ">
<tr>
<td>
<br>
<table width= "120 " border= "0 ">
<tr>
<td width= "120 " height= "98 " align= "center " valign= "middle " bgcolor= "#F4F4F4 " class= "centbodyfont "> <img src= "images/2wj-1.jpg " width= "110 " height= "83 "> </td>
</tr>
<tr>
<td height= "20 "> asdasd </td>
</tr>
</table>
<br>
</td>
</tr>
</table>
------解决方案-------------------- <table>
<tr>
<td> 标题 </td>
<td> 标题 </td>
<td> 标题 </td>
<td> 标题 </td>
</tr>
<%
while(....){//循环
<tr>
<td> 数据1 </td> <td> 数据2 </td> <td> 数据3 </td> <td> 数据4 </td>
</tr>
}
%>
</table>