检查框列表对齐-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属性设置为水平