ASP.NET CellSpacingProperty


Table 控件Table Control

Definition and Usage

The CellSpacing property is used to get or set the spacing between cells in a table (in pixels).

Note:This property is invalid in FireFox.

Syntax

<asp:Table CellSpacing="px" runat="server">
Some Content
</asp:Table>
 
Property Description
px Specifies the spacing between cells (in pixels).


Example

The following example sets the CellSpacing property of the Table control:

<form runat="server">
<asp:Table id="tab1" runat="server"
CellSpacing="20">
<asp:TableRow>
<asp:TableCell>
Hello!
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</form>

Demo Example »

Table 控件Table Control Other Extensions