当前位置: 代码迷 >> ASP.NET >> RadioButtonList的烦心事,散分了,该怎么处理
  详细解决方案

RadioButtonList的烦心事,散分了,该怎么处理

热度:5947   发布时间:2013-02-25 00:00:00.0
RadioButtonList的烦心事,散分了
有一个 <asp:RadioButtonList> <asp:listItem> 文字 </Asp:ListItem> </asp:RadioButtonList>
怎么让文字与选择的框平排显示,按网上找的一个方法也不行,说是在 <asp:listitem> 中的文字加middle,怎么调都是选择框在上一行,文字在另一行

------解决方案--------------------------------------------------------
RepeatDirection= "Horizontal " RepeatLayout= "Table "
------解决方案--------------------------------------------------------
<form runat=server>
<asp:RadioButtonList id= "RadioButtonList1 "
RepeatDirection= "Horizontal "
RepeatLayout= "Table "
runat= "server ">
<asp:ListItem> 文字 </asp:ListItem>

</asp:RadioButtonList>
</form>

------解决方案--------------------------------------------------------
设置一下RepeaterDirection就OK
或在Div中设置也行,style= "float:left "
------解决方案--------------------------------------------------------
RepeatDirection= "Horizontal " RepeatLayout= "Table "

so 简单的问题,可惜来晚啦