我想将引导网格应用于 RadioButtonList 的 ListItem:
Col-md-12
+-------------------------------------------------------------------+
| Col-md-2 Col-md-2 Col-md-2 Col-md-2 Col-md-2 |
| +--------+ +--------+ +--------+ +--------+ +--------+ |
| | O rb1 | | O rb2 | | O rb3 | | O rb4 | | O rb5 | |
| +--------+ +--------+ +--------+ +--------+ +--------+ |
+-------------------------------------------------------------------+
我的 RadioButtonList 是:
<div class="col-md-12">
<asp:RadioButtonList ID="rblCleanliness" RepeatDirection="Horizontal" runat="server">
<asp:ListItem Value="1">rb1</asp:ListItem>
<asp:ListItem Value="2">rb2</asp:ListItem>
<asp:ListItem Value="3">rb3</asp:ListItem>
<asp:ListItem Value="4">rb4</asp:ListItem>
<asp:ListItem Value="5">rb5</asp:ListItem>
</asp:RadioButtonList>
</div>
如何应用col-md-2
到 RadioButtonList 的每个 ListItem?
<div class="col-md-2">
<asp:ListItem Value="1">rb1</asp:ListItem>
</div>
更新:
我正在寻找的结果: