Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/67.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
检查框列表对齐-ASP.NET_Asp.net_Checkboxlist - Fatal编程技术网

检查框列表对齐-ASP.NET

检查框列表对齐-ASP.NET,asp.net,checkboxlist,Asp.net,Checkboxlist,我的页面中有一个复选框列表,如下所示 <td> <asp:Label runat="server" ID="Label1" Text="Employer Type"></asp:Label> </td> <td valign="middle"> <asp:

我的页面中有一个复选框列表,如下所示

<td>
                     <asp:Label runat="server" ID="Label1" Text="Employer Type"></asp:Label>
                </td>
                        <td valign="middle">
                            <asp:CheckBoxList ID="chkEmployerType" runat="server">
                                <asp:ListItem Value="E" Text="Employer"></asp:ListItem>
                                <asp:ListItem Value="O" Text="OJT Provider"></asp:ListItem>
                            </asp:CheckBoxList>

                        </td>

如您所见,这两个复选框一个接一个地对齐。有没有可能在一条线上安装2?其设计规范如下所示

<td>
                     <asp:Label runat="server" ID="Label1" Text="Employer Type"></asp:Label>
                </td>
                        <td valign="middle">
                            <asp:CheckBoxList ID="chkEmployerType" runat="server">
                                <asp:ListItem Value="E" Text="Employer"></asp:ListItem>
                                <asp:ListItem Value="O" Text="OJT Provider"></asp:ListItem>
                            </asp:CheckBoxList>

                        </td>

写下这个

<asp:Label runat="server" ID="Label1" Text="Employer Type"></asp:Label>
                </td>
                        <td valign="middle">
                            <asp:CheckBoxList ID="chkEmployerType" runat="server"  RepeatDirection="Horizontal">
                                <asp:ListItem Value="E" Text="Employer"></asp:ListItem>
                                <asp:ListItem Value="O" Text="OJT Provider"></asp:ListItem>
                            </asp:CheckBoxList>

                        </td>

写下这个

<asp:Label runat="server" ID="Label1" Text="Employer Type"></asp:Label>
                </td>
                        <td valign="middle">
                            <asp:CheckBoxList ID="chkEmployerType" runat="server"  RepeatDirection="Horizontal">
                                <asp:ListItem Value="E" Text="Employer"></asp:ListItem>
                                <asp:ListItem Value="O" Text="OJT Provider"></asp:ListItem>
                            </asp:CheckBoxList>

                        </td>

写下这个

<asp:Label runat="server" ID="Label1" Text="Employer Type"></asp:Label>
                </td>
                        <td valign="middle">
                            <asp:CheckBoxList ID="chkEmployerType" runat="server"  RepeatDirection="Horizontal">
                                <asp:ListItem Value="E" Text="Employer"></asp:ListItem>
                                <asp:ListItem Value="O" Text="OJT Provider"></asp:ListItem>
                            </asp:CheckBoxList>

                        </td>

写下这个

<asp:Label runat="server" ID="Label1" Text="Employer Type"></asp:Label>
                </td>
                        <td valign="middle">
                            <asp:CheckBoxList ID="chkEmployerType" runat="server"  RepeatDirection="Horizontal">
                                <asp:ListItem Value="E" Text="Employer"></asp:ListItem>
                                <asp:ListItem Value="O" Text="OJT Provider"></asp:ListItem>
                            </asp:CheckBoxList>

                        </td>

您需要使用
RepeatDirection
属性,如下所示

RepeatDirection="Horizontal"

它创建用于显示项目的
ul
li
。您可以定义
css
规则,并根据需要显示

您需要使用
RepeatDirection
属性,如下所示

RepeatDirection="Horizontal"

它创建用于显示项目的
ul
li
。您可以定义
css
规则,并根据需要显示

您需要使用
RepeatDirection
属性,如下所示

RepeatDirection="Horizontal"

它创建用于显示项目的
ul
li
。您可以定义
css
规则,并根据需要显示

您需要使用
RepeatDirection
属性,如下所示

RepeatDirection="Horizontal"

它创建用于显示项目的
ul
li
。您可以定义
css
规则,并根据需要显示

将复选框列表的RepeatDirection属性设置为水平

将复选框列表的RepeatDirection属性设置为水平

将复选框列表的RepeatDirection属性设置为水平