ASP.NET CheckBoxList CellSpacing 屬性
定義和用法
CellSpacing 屬性用於獲取或設置CheckBoxList 中表格單元格之間的像素數。
注意:該函數僅在RepeatLayout設置為"Table"時有效(默認)。
語法
<asp:CheckBoxList CellSpacing="pixels" runat="server">
Some Content
</asp:CheckBoxList>
Some Content
</asp:CheckBoxList>
属性 | 描述 |
---|---|
pixels | 规定表格单元格之间的像素数。 |
實例
下面的實例設置了CheckBoxList 控件的CellSpacing 屬性:
<form runat="server">
<asp:CheckBoxList id="rb1"
runat="server" CellSpacing="15">
Some content
</asp:CheckBoxList>
</form>
<asp:CheckBoxList id="rb1"
runat="server" CellSpacing="15">
Some content
</asp:CheckBoxList>
</form>
演示實例»
CheckBoxList控件