RadioButtonList前面的文本与其换行

来源:互联网 发布:淘宝被投诉盗图扣几分 编辑:程序博客网 时间:2024/04/30 07:49

性别:<asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal">
                  <asp:ListItem>男</asp:ListItem>
                  <asp:ListItem>女</asp:ListItem>
        </asp:RadioButtonList>

怎么显示的时候,这个RadioButtonList总是和文字(这里就是“性别:”)要换行(不在同一行)呢?

答:
RadioButtonList属性RepeatLayout设为Flow就好了!

原创粉丝点击