ASP.NET CellPadding 屬性
定義和用法
CellPadding 屬性用于設(shè)置或返回表格單元格的邊框與內(nèi)容之間的像素數(shù)。
注釋:該函數(shù)僅在 RepeatLayout 設(shè)置為 "Table" 時有效。
語法
<asp:CheckBoxList CellPadding="pixels" runat="server"> some content </asp:CheckBoxList>
屬性 | 描述 |
---|---|
pixels | 規(guī)定表格單元格的邊框與內(nèi)容之間的像素數(shù)。 |
實例
下面的例子設(shè)置了 CheckBoxList 控件的 CellPadding 屬性:
<form runat="server">
<asp:CheckBoxList id="rb1" runat="server" CellPadding="15"
>
Some content
</asp:CheckBoxList>
</form>
實例
- 設(shè)置 CheckBoxList 控件的 CellPadding