当前位置 : 主页 > 网页制作 > Bootstarp >

RadiobuttonList的Bootstrap CSS

来源:互联网 收集:自由互联 发布时间:2021-06-12
Radion按钮: div class="control-group" label class="control-label"Mode/label div class="controls" asp:radiobuttonlist id="RadioButtonList1" cssclass="radio" autopostback="true" title="Please Select Mode of Payment" repeatdirection="Horiz
Radion按钮:

<div class="control-group">
    <label class="control-label">Mode</label>
    <div class="controls">
        <asp:radiobuttonlist id="RadioButtonList1" cssclass="radio" autopostback="true" title="Please Select Mode of Payment"
          repeatdirection="Horizontal"
          onselectedindexchanged="RadioButtonList1_SelectedIndexChanged">
            <asp:listitem>Cash</asp:listitem>
            <asp:listitem>Cheque</asp:listitem>
            <asp:listitem>Demand Draft</asp:listitem>
            <asp:listitem>Net Banking</asp:listitem>
        </asp:radiobuttonlist>
    </div>
   </div>

我已经应用了Bootstrap css:

>文字框,
>下拉列表,
> textarea,
> buton等

一切看起来很好,除了radiobutton列表,看起来很可怕:

怎么解决这个?

我无法使用< label>和< input type =“radio”>

所以这就是我用的:

<asp:RadioButtonList ID="popiRadios" RepeatLayout="Flow" RepeatDirection="Horizontal" runat="server">
                        <asp:ListItem class="radio-inline" Value="1" Text="Cash" Selected="True"></asp:ListItem>
                        <asp:ListItem class="radio-inline" Value="0" Text="Cheque"></asp:ListItem>
                    </asp:RadioButtonList>

它出来是这样的:

enter image description here

网友评论