ASP.NET Table CellSpacing property
Definition and Usage
CellSpacing property is used to get or set the table cell spacing (in pixels).
Note: This property has no effect in FireFox.
grammar
<asp:Table CellSpacing="px" runat="server">
Some Content
</asp:Table>
Some Content
</asp:Table>
属性 | 描述 |
---|---|
px | 规定单元格的间距(以像素计)。 |
Examples
The following examples set CellSpacing property 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>
<asp:Table id="tab1" runat="server"
CellSpacing="20">
<asp:TableRow>
<asp:TableCell>
Hello!
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</form>
The demonstration >>
Table Controls