我想 float 我的 Radiobutton 列表,但是当我尝试使用时它的样式变得很奇怪 float :左;
有什么帮助吗?我想将单选按钮和问题对齐在同一行 http://jsfiddle.net/MhHFH/2/
我正在使用 asp.net Radiobutton 列表,因此它会在其周围创建自动跨度
<fieldset id="thirdForm">
<legend>INFO</legend>
<div class="rowDiv">
<label>
Question 1:
</label>
<asp:RadioButtonList CssClass="rbCSS" ID="RadioButtonList1" runat="server" RepeatLayout="Flow" RepeatDirection="Horizontal">
<asp:ListItem Value="2">Yes</asp:ListItem>
<asp:ListItem Value="1">No</asp:ListItem>
</asp:RadioButtonList>
</div>
</fieldset>
最佳答案
删除rdbtn css remove block然后你可以得到你想要的方式
关于asp.net - 如何在字段集中对齐我的单选按钮列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13320765/