ASP.NET BackColor property
Definition and Usage
BackColor property sets or returns the background color of the control.
grammar
<asp:webcontrolid="id" BackColor="color"runat="server" />
属性 | 描述 |
---|---|
color | 设置为控件的背景颜色的颜色。必须是合法的 HTML 颜色 。 |
Examples
The following examples set the background color for the button:
<form runat="server">
<asp:Button id="button1" Text="Submit"
BackColor="#E0FFFF" runat="server" />
</form>
<asp:Button id="button1" Text="Submit"
BackColor="#E0FFFF" runat="server" />
</form>
The demonstration >>
Web Control Standard Properties Reference