ASP.NET CheckBoxList CellPadding 属性


CheckBoxList 控件 CheckBoxList 控件

定义和用法

CellPadding 属性用于获取或设置表格单元格的边框与内容之间的像素数。

注意:该函数仅在 RepeatLayout 属性设置为 "Table" 时有效。

语法

<asp:CheckBoxList CellPadding="pixels" runat="server">
Some Content
</asp:CheckBoxList>

属性 描述
pixels 规定表格单元格的边框与内容之间的像素数。


实例

下面的实例设置了 CheckBoxList 控件的 CellPadding 属性:

<form runat="server">
<asp:CheckBoxList id="rb1"
runat="server" CellPadding="15">

Some content

</asp:CheckBoxList>
</form>

演示实例 »

CheckBoxList 控件 CheckBoxList 控件