ASP.NET CellSpacing 屬性

定義和用法

CellSpacing 屬性用于設置或返回 CheckBoxList 中表格單元之間的像素數。

注釋:該函數僅在 RepeatLayout 設置為 "Table" 時有效(默認)。

語法

<asp:CheckBoxList CellSpacing="pixels" runat="server">
some content
</asp:CheckBoxList>
屬性 描述
pixels 規定表格單元之間的像素數。

實例

下面的例子設置了 CheckBoxList 控件的 CellSpacing 屬性:

<form runat="server">
<asp:CheckBoxList id="rb1"
runat="server" CellSpacing="15">
Some content
</asp:CheckBoxList>
</form>

實例

設置 CheckBoxList 控件的 CellSpacing