0
我有一个单选按钮列表:单选按钮列表搞砸在IE
<p>
<label for="rblIAm">I am</label>
<asp:RadioButtonList ID="rblIAm" ValidationGroup="RegForm" runat="server">
<asp:ListItem Text="Gay" Value="Gay"></asp:ListItem>
<asp:ListItem Text="Bisexual" Value="Bisexual"></asp:ListItem>
<asp:ListItem Text="Straight" Value="Straight"></asp:ListItem>
</asp:RadioButtonList>
</p>
使用CSS像这样:
label {
float: left;
width: 10em;
font-size: 90.9%;
padding-left: 1em;
}
input {
background-color: #000;
border: 1px solid #fff;
color: #fff;
font-size: 90.9%;
height: 20px;
clear: right;
}
input[type=radio] {
height: 11px;
border: none;
border-color: transparent;
}
在Chrome中,它看起来罚款:
在IE中看起来很乱:
有人可以解释发生了什么问题和解决办法吗?
感谢
我的第一个想法是,它看起来像IE是呈现单选按钮作为块元素,而不是内联一个元素,你可以提供生成的HTML? – TheLukeMcCarthy 2012-01-10 11:16:10
你能重现[JSFiddle](http://jsfiddle.net)中的错误吗? – 2012-01-10 11:28:16
什么是生成的HTML代码?这是渲染过程中最重要的部分。 这种标记在很多方面都很奇怪 - 有'