ASP.NET CheckBoxList CellPadding 屬性

定義和用法
CellPadding 屬性用於獲取或設置表格單元格的邊框與內容之間的像素數。
注意:該函數僅在 RepeatLayout 屬性設置為 "Table" 時有效。
語法
<asp:CheckBoxList CellPadding="pixels" runat="server">
Some Content
</asp:CheckBoxList>
Some Content
</asp:CheckBoxList>
屬性 | 描述 |
---|---|
pixels | 規定表格單元格的邊框與內容之間的像素數。 |
實例
下麵的實例設置了 CheckBoxList 控件的 CellPadding 屬性:
<form runat="server">
<asp:CheckBoxList id="rb1"
runat="server" CellPadding="15">
Some content
</asp:CheckBoxList>
</form>
<asp:CheckBoxList id="rb1"
runat="server" CellPadding="15">
Some content
</asp:CheckBoxList>
</form>
