无法对齐radiobuttonlist

时间:2016-01-06 11:15:59

标签: html css asp.net radiobuttonlist

我无法将radiobutton列表与上面标签的左侧对齐。 这是代码

  <div style="border-radius: 10px;">
        <div style="margin-bottom: 10px"></div>
        <asp:Panel ID="panel" runat="server">
            <div style="padding-left: 10px" >
                <asp:Label ID="lbl" runat="server" Text="Select criteria" />
                <asp:RadioButtonList ID="radio" runat="server" AutoPostBack="True" OnSelectedIndexChanged="radio_SelectedIndexChanged" RepeatDirection="Horizontal"   />
                <asp:Label ID="lbl1" runat="server" Text="Value"></asp:Label>
                <br />
                <asp:TextBox ID="txt" runat="server"></asp:TextBox>
                <asp:Label ID="ScoreMethodLabel" runat="server" Text="Score"></asp:Label>
                <asp:DropDownList ID="dropscore" runat="server" />&nbsp;
            </div>

        </asp:Panel>
        <br/>
    </div>

这是输出我看

enter image description here

你看到选项按钮没有在名为&#34;#34;选择标准&#34;

的文字下方未经正确对齐

1 个答案:

答案 0 :(得分:0)

尝试margin:0

* {
   margin: 0;
   }

input[type=radio] {
        margin: 0;
   }