+ -
当前位置:首页 → 问答吧 → 请教hidden元素在IE和Firefox上区别问题?

请教hidden元素在IE和Firefox上区别问题?

时间:2011-03-15

来源:互联网

如下段代码,IE中两个checkbox之间有若干空格产生,而firefox中是不会有空格的。请问如何消除IE中的空格,另空格产生的原因是什么?谢谢!

----------------------------------------------------------
<html>
<head></head>
<body>
<form>
<table>
<tr>
<td>
<input type="checkbox" name ="1" value = "111"/>
<input type="hidden" name ="1" value = "111"/>
<input type="hidden" name ="1" value = "111"/>
<input type="hidden" name ="1" value = "111"/>
<input type="hidden" name ="1" value = "111"/>
<input type="hidden" name ="1" value = "111"/>
<input type="hidden" name ="1" value = "111"/>
<input type="hidden" name ="1" value = "111"/>
<input type="hidden" name ="1" value = "111"/>
<input type="checkbox" name ="1" value = "111"/>
</td>
</tr>
</table>
</form>
</body>
</html>
----------------------------------------------------------

作者: caoyongang   发布时间: 2011-03-15

HTML code

<html>
<head></head>
<body>
<form>
<table>
<tr>
<td>
[color=#FF0000]<input type="checkbox" name ="1" value = "111"/>
<input type="checkbox" name ="1" value = "111"/>[/color]
<input type="hidden" name ="1" value = "111"/>
<input type="hidden" name ="1" value = "111"/>
<input type="hidden" name ="1" value = "111"/>
<input type="hidden" name ="1" value = "111"/>
<input type="hidden" name ="1" value = "111"/>
<input type="hidden" name ="1" value = "111"/>
<input type="hidden" name ="1" value = "111"/>
<input type="hidden" name ="1" value = "111"/>

</td>
</tr>
</table>
</form>
</body>
</html>

作者: xiaosaner3   发布时间: 2011-03-15

<html>
<head></head>
<body>
<form>
<table>
<tr>
<td>
<input type="checkbox" name ="1" value = "111"/>
<input type="checkbox" name ="1" value = "111"/>
<input type="hidden" name ="1" value = "111"/>
<input type="hidden" name ="1" value = "111"/>
<input type="hidden" name ="1" value = "111"/>
<input type="hidden" name ="1" value = "111"/>
<input type="hidden" name ="1" value = "111"/>
<input type="hidden" name ="1" value = "111"/>
<input type="hidden" name ="1" value = "111"/>
<input type="hidden" name ="1" value = "111"/>

</td>
</tr>
</table>
</form>
</body>
</html>

作者: xiaosaner3   发布时间: 2011-03-15

引用 2 楼 xiaosaner3 的回复:
<html>
<head></head>
<body>
<form>
<table>
<tr>
<td>
<input type="checkbox" name ="1" value = "111"/>
<input type="checkbox" name ="1" value = "111"/>
<input type="hidden" name ="1" value = "……


这样做势必影响页面提交的数据顺序,我想按顺序提交,有没有其他简单方法呢?

作者: caoyongang   发布时间: 2011-03-15

.index_news_timu li{ height:16px !important;line-height:1.4em;text-align:center; vertical-align:middle; float:left; display:inline;list-style:none; width:60px; margin-right:2px; margin-left:9px; padding-top:2px;}
.index_aboutus_more{width:44px; height:11px; margin-left:180px !important;margin-left:145px; float:left; padding-top:8px;}
我以为你的问题应该出在这里 这个是我以前写的一段 你可以参考下
wenwen.soso.com

作者: fengyarongaa   发布时间: 2011-03-15