Propriété BackColor ASP.NET
Définition et utilisation
L'attribut BackColor est utilisé pour définir ou retourner la couleur de fond du contrôle.
Syntaxe
<asp:webcontrol id="id" BackColor="color" runat="server" />
Propriété | Description |
---|---|
color | Définir la couleur de fond du contrôle. Doit être une couleur HTML valide. |
Exemple
Cet exemple définit la couleur de fond du bouton :
<form runat="server"> <asp:Button id="button1" Text="Soumettre" BackColor="#E0FFFF" runat="server" /> </form>
Exemple
- Définir la couleur de fond du contrôle button