收录日期:2020/10/28 13:35:16 时间:2016/07/25 02:29:32 标签:HTML(CSS)
以下HTML 的单选按钮在 IE下 不能对齐显示

程序代码
<ItemTemplate>
                                             <ul class="SurveyContUl">
                                             <li style="width:10px;"><asp:Literal ID="NumCount" runat="server"></asp:Literal>.</li>
                                             <li style="width:400px;"><asp:Literal ID="askText" runat="server" Text='<%#Eval(selField)%>'></asp:Literal></li>
                                                <li style="width:50px;text-align:center; "><asp:RadioButton ID="RadioButton1" GroupName="Repeater3" runat="server" /></li>
                                                <li style="width:50px;text-align:center;"><asp:RadioButton ID="RadioButton2" GroupName="Repeater3" runat="server" /></li>
                                                <li style="width:65px;text-align:center;"><asp:RadioButton ID="RadioButton3" GroupName="Repeater3" runat="server" /></li>
                                               </ul>
                                              
                                              <asp:HiddenField ID="PropertyID" Value='<%#Eval("PropertyID")%>' runat="server" />
                                            </ItemTemplate>


HTML 代码如下

                                            
                                             <ul class="SurveyContUl">

                                             <li style="width:10px;">7.</li>
                                             <li style="width:400px;">本提案可增强IT内部系统兼容性(如将某系统升级为IT统一的标准架构,从而使得此系统未来更加方便与其他系统兼容互接)</li>
                                                <li style="width:50px;text-align:right; "><input id="ITPartRepeater3_ctl06_RadioButton1" type="radio" name="ITPartRepeater3$ctl06$Repeater3" value="RadioButton1" /></li>
                                                <li style="width:50px;text-align:right;"><input id="ITPartRepeater3_ctl06_RadioButton2" type="radio" name="ITPartRepeater3$ctl06$Repeater3" value="RadioButton2" /></li>
                                                <li style="width:65px;text-align:right;"><input id="ITPartRepeater3_ctl06_RadioButton3" type="radio" name="ITPartRepeater3$ctl06$Repeater3" value="RadioButton3" /></li>
                                               </ul>
                                              
                                              <input type="hidden" name="ITPartRepeater3$ctl06$PropertyID" id="ITPartRepeater3_ctl06_PropertyID" value="93" />
                                            
                                             <ul class="SurveyContUl">

                                             <li style="width:10px;">8.</li>
                                             <li style="width:400px;">本提案可提高IT生产率(如引入某测试工具软件,提高测试人员工作效率等)</li>
                                                <li style="width:50px;text-align:right; "><input id="ITPartRepeater3_ctl07_RadioButton1" type="radio" name="ITPartRepeater3$ctl07$Repeater3" value="RadioButton1" /></li>
                                                <li style="width:50px;text-align:right;"><input id="ITPartRepeater3_ctl07_RadioButton2" type="radio" name="ITPartRepeater3$ctl07$Repeater3" value="RadioButton2" /></li>
                                                <li style="width:65px;text-align:right;"><input id="ITPartRepeater3_ctl07_RadioButton3" type="radio" name="ITPartRepeater3$ctl07$Repeater3" value="RadioButton3" /></li>
                                               </ul>
                                              
                                              <input type="hidden" name="ITPartRepeater3$ctl07$PropertyID" id="ITPartRepeater3_ctl07_PropertyID" value="94" />
                                            
                                             <ul class="SurveyContUl">

                                             <li style="width:10px;">9.</li>
                                             <li style="width:400px;">本提案可提高IT的客户服务水平</li>
                                                <li style="width:50px;text-align:right; "><input id="ITPartRepeater3_ctl08_RadioButton1" type="radio" name="ITPartRepeater3$ctl08$Repeater3" value="RadioButton1" /></li>
                                                <li style="width:50px;text-align:right;"><input id="ITPartRepeater3_ctl08_RadioButton2" type="radio" name="ITPartRepeater3$ctl08$Repeater3" value="RadioButton2" /></li>
                                                <li style="width:65px;text-align:right;"><input id="ITPartRepeater3_ctl08_RadioButton3" type="radio" name="ITPartRepeater3$ctl08$Repeater3" value="RadioButton3" /></li>
                                               </ul>
                                              
                                              <input type="hidden" name="ITPartRepeater3$ctl08$PropertyID" id="ITPartRepeater3_ctl08_PropertyID" value="95" />
                                            
                                             <ul class="SurveyContUl">

                                             <li style="width:10px;">10.</li>
                                             <li style="width:400px;">本提案可增强IT的能力及人员技能(如对IT人员的培训等)</li>
                                                <li style="width:50px;text-align:right; "><input id="ITPartRepeater3_ctl09_RadioButton1" type="radio" name="ITPartRepeater3$ctl09$Repeater3" value="RadioButton1" /></li>
                                                <li style="width:50px;text-align:right;"><input id="ITPartRepeater3_ctl09_RadioButton2" type="radio" name="ITPartRepeater3$ctl09$Repeater3" value="RadioButton2" /></li>
                                                <li style="width:65px;text-align:right;"><input id="ITPartRepeater3_ctl09_RadioButton3" type="radio" name="ITPartRepeater3$ctl09$Repeater3" value="RadioButton3" /></li>
                                               </ul>
                                              
                                              <input type="hidden" name="ITPartRepeater3$ctl09$PropertyID" id="ITPartRepeater3_ctl09_PropertyID" value="96" />
                                            
                                             <ul class="SurveyContUl">

                                             <li style="width:10px;">11.</li>
                                             <li style="width:400px;">本提案可加快IT对故障恢复的响应(如安装ITIL体系,使得IT对事件的响应更加直接迅速)</li>
                                                <li style="width:50px;text-align:right; "><input id="ITPartRepeater3_ctl10_RadioButton1" type="radio" name="ITPartRepeater3$ctl10$Repeater3" value="RadioButton1" /></li>
                                                <li style="width:50px;text-align:right;"><input id="ITPartRepeater3_ctl10_RadioButton2" type="radio" name="ITPartRepeater3$ctl10$Repeater3" value="RadioButton2" /></li>
                                                <li style="width:65px;text-align:right;"><input id="ITPartRepeater3_ctl10_RadioButton3" type="radio" name="ITPartRepeater3$ctl10$Repeater3" value="RadioButton3" /></li>
                                               </ul>
                                              
                                              <input type="hidden" name="ITPartRepeater3$ctl10$PropertyID" id="ITPartRepeater3_ctl10_PropertyID" value="97" />
补充 CSS 样式
.SurveyContUl{width:645px; height:auto; padding:0; margin:0 auto; clear:both; overflow:hidden; display:table}
.SurveyContUl li{ float:left; line-height:20px; margin:5px; display:table-cell}

.SurveyContUl li input{vertical-align:middle;}
列表:<ul><li>本身就不能对齐

¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥我要杀了她¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥¥ 菜枭问个超简单问题,DataGrid的样式如何用代码设置? 关于用透明网关连接sql2000的问题!跪求高手指点! 求助”对指定字符串进行解析处理,在HTML页面中显示处理结果“的功能 怎样在点击dategrid中的删除按钮(按钮列)后,弹出提示对话框? 求教!关于drawString()的显示变量问题—— 问一个关于Bolg显示方式的讨论:如何快速显示Blog内容 存贮过程 OUTPUT问题 聊聊做为程序员,开发过程中最难受的经历 SQL server改端口(就是端口不是默认的了),ASP连接SQL的代码应该怎么写 rs.close()后会自动释放内存资源吗?比如在tomcat+jsp的应用中。 如何用vc编写备份sql server数据库的时候显示备份进度? Dataedit在程序运行后显示周几的的地方出现“星星星星星星星” 根据数值输入产生波形变换 笔试没通过, 郁闷中~~~散分 如何在服务器上部署ASP.NET程序?? 请问,在名企工作过对以后发展有好处吗,都有什么好处呢,小弟毕业后在同方,方正,微软(外包)工作过,7年经验。 请问,在名企工作过对以后发展有好处吗,都有什么好处呢,小弟毕业后在同方,方正,微软(外包)工作过,7年经验。 请问,在名企工作过对以后发展有好处吗,都有什么好处呢,小弟毕业后在同方,方正,微软(外包)工作过,7年经验 请问,在名企工作过对以后发展有好处吗,都有什么好处呢,小弟毕业后在同方,方正,微软(外包)工作过,7年经验 请问,在名企工作过对以后发展有好处吗,都有什么好处呢,小弟毕业后在同方,方正,微软(外包)工作过,7年经验 急寻《SQL Server 2000 数据仓库与Analysis Services》中文电子版!!!!! 请问,在名企工作过对以后发展有好处吗,都有什么好处呢,小弟毕业后在同方,方正,微软(外包)工作过,7年经验 晚安,像我这样的人们 用C++怎么实现Hook超链接hyperlink的点击操作呢? 《Windows核心编程》中的一个DLL插入方法的疑问 求助,使用session做用户标志问题!小问题 有没有办法修改游戏窗体的caption? 求助!! vc中怎么读出后显示word文档的文字(多页的),