RadioButtonList前面的文本与其换行

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

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

 

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

posted @ 2015-10-08 13:53  z542601362  阅读(377)  评论(0)    收藏  举报