jsp中遍历集合时自动换行的问题:代码如下,但是页面显示结果很乱,现在想要要横着排,请问怎么修改
<fieldsetstyle="width:100%;">
<legend>
<omcTag:textname="label.repeater.performance.paramName"/>
<inputtype="checkbox"id="selectAllParam"<s:iftest="%{#pollLogParams.size()==params.size()}">checked="checked"</s:if>/><label><omcTag:textname="label.operate.selectAll"/></label>
</legend>
<table>[img=http://zhidao.baidu.com/question/521606993?quesup2&oldq=1][/img]
<tr>
<s:iteratorvar="var"value="pollLogParams"status="status">
<td>
<spanstyle="display:inline-block">
<inputtype="checkbox"name="params"value="${var.id}"id="param${status.count}"<s:iftest="%{params.contains(#var.id+'')}">checked="checked"</s:if>/><labelfor="param${status.count}">${var.label}</label>
</span>
</td>
</s:iterator>
</tr>
</table>
</fieldset> jsp iterator table
------解决方案--------------------
看图应该是给td或span指定了宽度
如果要横排,把每一行放在一个tr里就行了
查询谷 - www.chaxungu.com
jsp中遍历集合时自动换行的有关问题:代码如上,但是页面显示结果很乱,现在想要要横着排,请教如何修改
编辑:chaxungu时间:2022-10-10 23:24:28分类:web开发
上一篇:js交付form失败