ASP.NET CellPadding 属性

返回 ASP.NET CheckBoxList 控件参考手册

定义和用法

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

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

语法

<asp:CheckBoxList CellPadding="pixels" runat="server">
some content
</asp:CheckBoxList>
属性 描述
pixels 规定表格单元格的边框与内容之间的像素数。
这个在线速查手册由www.w﹏﹏3﹏x﹏﹏u﹏e.com提供,请勿盗用!

实例

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

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

Some content

</asp:CheckBoxList>
</form>

返回 ASP.NET CheckBoxList 控件参考手册