Attribut CellSpacing ASP.NET

Définition et utilisation

L'attribut CellSpacing est utilisé pour définir ou retourner l'espacement entre les cellules du tableau (en pixels).

Remarque :Cette propriété est inutile dans Firefox.

Syntaxe

<asp:Table CellSpacing="px" runat="server">
Some Content
</asp:Table>
Attribut Description
px Définir l'espacement entre les cellules (en pixels).

Exemple

L'exemple suivant définit l'attribut CellSpacing du contrôle Table:

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

Exemple

Définir l'attribut CellSpacing pour le contrôle Table