jsp中遍历集合时自动换行的问题:代码如下,但是页面显示结果很乱,现在要横着排,请问怎么修改
<fieldsetstyle="width:100%;"><legend><omcTag:textname="label.repeater.performance.par...
<fieldset style="width: 100%;">
<legend>
<omcTag:text name="label.repeater.performance.paramName" />
<input type="checkbox" id="selectAllParam" <s:if test="%{#pollLogParams.size() == params.size() }">checked="checked"</s:if>/><label><omcTag:text name="label.operate.selectAll"/></label>
</legend>
<table>
<tr>
<s:iterator var="var" value="pollLogParams" status="status">
<td>
<span style="display:inline-block">
<input type="checkbox" name="params" value="${var.id }" id="param${status.count }" <s:if test="%{params.contains(#var.id + '') }">checked="checked"</s:if> /><label for="param${status.count }">${var.label }</label>
</span>
</td>
</s:iterator>
</tr>
</table>
</fieldset> 展开
<legend>
<omcTag:text name="label.repeater.performance.paramName" />
<input type="checkbox" id="selectAllParam" <s:if test="%{#pollLogParams.size() == params.size() }">checked="checked"</s:if>/><label><omcTag:text name="label.operate.selectAll"/></label>
</legend>
<table>
<tr>
<s:iterator var="var" value="pollLogParams" status="status">
<td>
<span style="display:inline-block">
<input type="checkbox" name="params" value="${var.id }" id="param${status.count }" <s:if test="%{params.contains(#var.id + '') }">checked="checked"</s:if> /><label for="param${status.count }">${var.label }</label>
</span>
</td>
</s:iterator>
</tr>
</table>
</fieldset> 展开
2013-01-31
展开全部
1. 给每个td设置宽度width
2, 或者设置一个css 样式给td
2, 或者设置一个css 样式给td
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询