目录搜索
文字
分享

ASP.NET CheckBoxList CellSpacing 属性




定义和用法

CellSpacing 属性用于获取或设置 CheckBoxList 中表格单元格之间的像素数。

注意:该函数仅在 RepeatLayout 设置为 "Table" 时有效(默认)。

语法

1

<div><asp:CheckBoxList CellSpacing="<em>pixels</em>" runat="server"><br><em>Some Content</em><br> </asp:CheckBoxList></div>


属性 描述
pixels 规定表格单元格之间的像素数。

实例

下面的实例设置了 CheckBoxList 控件的 CellSpacing 属性:

1

<div class="example_code notranslate"><form runat="server"><br> <asp:CheckBoxList id="rb1"<br> runat="server" CellSpacing="15"><br><br><em>Some content</em><br><br> </asp:CheckBoxList><br> </form></div>