我在RadioButtonList的新添加的单选按钮(是和否)和现有区域的第一部分(divName)之间正确对齐。
有谁可以帮助我调整新添加的第二区域(div1)

<div id="divpanelFacts" runat="server">
            <fieldset id="panelFacts">
                <table width="100%">
                    <tr>
                 <td>
                            <div id="divName" runat="server" visible="false">
                                <span>
                                    <label runat="server" id="Label1">
                                        <span id="pNameSpan" runat="server">*</span>P Name</label>
                                    <asp:TextBox ID="textPName" runat="server" MaxLength="20"></asp:TextBox>
                                </span>
                            </div>
                        </td>
                          <td>

                            <div id="div1" runat="server" visible="false">
                                <asp:Label ID="lbl1" runat="server" Text="Would like to use this option for document purpose"></asp:Label>
                                <asp:RadioButtonList ID="rbl1" runat="server" TextAlign="Left" RepeatDirection="Horizontal">
                                    <asp:ListItem Value="Yes" Text="Yes" />
                                    <asp:ListItem Value="No" Text="No" Selected="True" />
                                </asp:RadioButtonList>
                            </div>

                          </td>
                     </tr>
                </table>
            </fieldset>
    </div>

最佳答案

您的表格宽度为100%,这意味着它将进行拉伸,我认为表格优先。

关于html - 如何控制单选按钮列表控件的单选按钮之间的空间,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/28994325/

10-14 13:38
查看更多