space 单选按钮和文本之间

space between radio button and text

我想在 RadioButtonList 中的单选按钮和文本之间放置一些 space。下面是我的代码:

  <asp:RadioButtonList ID="rdbTest" runat="server">
    <asp:ListItem Text="This is test1"></asp:ListItem>
    <asp:ListItem Text="This is test2"></asp:ListItem>
    <asp:ListItem Text="This is test3"></asp:ListItem>
    <asp:ListItem Text="This is test4"></asp:ListItem>
    <asp:ListItem Text="This is test5"></asp:ListItem>
</asp:RadioButtonList>

这是它的样子:

我想在单选按钮和“This is test1”、“This is test2”等之间增加间距。我的页面上有将近 500 个单选按钮。

任何帮助将不胜感激。

在header中添加CSS Class(调整边距值以获得所需的间距):

<style>
    .radioBL input[type="radio"]
    {
        margin-right:10px;
    }
</style>

然后将此添加到您的 RadioButtonList 标记中:CssClass="radioBL"