jsp框架问题
时间:2008-06-10 08:34:32
来源:论坛整理 作者: 编辑:chinaitzhe
<c:forEach items="${aa}" var="a">
<tr align="center" height="100">
<td>${a } </td>
</tr>
</c:forEach>
</table>
现在这个代码我出现的页面是一行N列。我现在想在页面现实两行,N/2列。
请问要怎么实现?
谢谢大家了
网友回复:看你有没有想象力了, <tr> <td>自由组合吧,
网友回复:假如是一行N列的话 那里就不需要把
<tr>包含进入, tr为行
<table align="center" border="1" style="color:red" width="60%">
<c:forEach items="${aa}" var="a">
<tr align="center" height="100">
<td>${a } </td>
</tr>
</c:forEach>
</table>
改为
<table align="center" border="1" style="color:red" width="60%">
<tr align="center" height="100">
<c:forEach items="${aa}" var="a">
<td>${a } </td>
</c:forEach>
</tr>
</table>
因为你只需要一行,那么行固定
这样去循环列
网友回复:我现在要的效果是两行,
网友回复:我看楼主的代码是一列N行吧。。。
网友回复:
支持
关键字:jsp,框架,问题,
上一篇:值的传递的问题
下一篇:下面没有链接了











文章评论
共有 0 位网友发表了评论 此处只显示部分留言 点击查看完整评论页面