请教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>
----------------------------------------------------------
----------------------------------------------------------
<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>
<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 = "……
<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
.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
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28