ASP.NET HorizontalAlignPropriété


Table 控件Contrôle Table

Définition et utilisation

La propriété HorizontalAlign est utilisée pour définir ou retourner l'alignement horizontal du contenu dans le contrôle Table.

Syntaxe

<asp:Table HorizontalAlign="align" runat="server">
Un contenu
</asp:Table>
 
Propriété Description
align Spécifie l'alignement horizontal du contenu.

Valeurs possibles :

  • Center
  • Justify
  • Left
  • NotSet (par défaut)
  • Right


Exemple

L'exemple suivant définit la propriété HorizontalAlign du contrôle Table :

<form runat="server">
<asp:Table id="tab1" runat="server" HorizontalAlign="Right">
<asp:TableRow>
<asp:TableCell>
Bonjour !
</asp:TableCell>
<asp:TableCell>
Bonjour !
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</form>

Essayez-le vous-même »

Table 控件Contrôle Table Autres extensions