C# 我想要复选框列表对齐
!![这是我使用复选框列表的输出][1] 这是我从自己的项目中得到的 但我真的很喜欢这个复选框列表。。![这是我非常想要的样本][2] 这是我的输出[1]: 我想要这个模型[2]: 我应该怎么做我得到了这个复选框列表C# 我想要复选框列表对齐,c#,asp.net,C#,Asp.net,!![这是我使用复选框列表的输出][1] 这是我从自己的项目中得到的 但我真的很喜欢这个复选框列表。。![这是我非常想要的样本][2] 这是我的输出[1]: 我想要这个模型[2]: 我应该怎么做我得到了这个复选框列表 <asp:CheckBoxList ID="CheckBoxList1" RepeatColumns="4" RepeatDirection="Horizontal" runat="ser
<asp:CheckBoxList ID="CheckBoxList1"
RepeatColumns="4"
RepeatDirection="Horizontal"
runat="server"
style="font-size: large">
这是我的来源,我需要css和良好的对齐。。。
有人能帮我吗?你可以使用
布局
如下
<asp:checkboxlist runat="server" id="chkBoxList1" cssclass="chkBoxList"
repeatcolumns="4" repeatlayout="Table">
</asp:checkboxlist>
使用css
<style>
.chkBoxList tr
{
height:24px;
}
.chkBoxList td
{
width:120px; /* or percent value: 25% */
}
</style>
.chkBoxList tr
{
高度:24px;
}
.chkBoxList td
{
宽度:120px;/*或百分比值:25%*/
}
请再次上传图片“这是我使用复选框列表的输出”,因为我们看不到它。我想要第二张图片。