ASP.NET CheckBoxList CellSpacing 属性
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>
演示实例 »

相关文章
- ASP.NET Web 的 C# 和 VB 实例
- ASP.NET Web Pages WebSecurity 参考手册
- ASP.NET Razor 标记
- ASP.NET Razor VB 逻辑
- ASP.NET MVC 控制器
- ASP.NET MVC 视图
- ASP.NET Button 控件
- ASP.NET ArrayList
- ASP.NET ValidationSummary 控件
- ASP.NET Calendar 控件
- ASP.NET ImageButton 控件
- ASP.NET PlaceHolder 控件
- WebSecurity GetCreateDate 方法
- WebSecurity RequireUser 方法
- HTML InputHidden
- ASP.NET HTML 控件 Hashtable RadiobuttonList 2
- C# 实例 可重复使用的头部和底部
- C# 实例 For 循环
- C# 实例 Array 数组
- ASP.NET Calendar OtherMonthDayStyle 属性