Latest web development tutorials

ASP.NET BorderColor property

Web Control Standard Properties Reference Web Control Standard Properties Reference

Definition and Usage

BorderColor property sets or returns the border color control.

grammar

<asp:webcontrolid="id" BorderColor="color"runat="server" />
属性 描述
color 设置为控件的边框颜色的颜色。必须是合法的 HTML 颜色


Examples

The following examples set the table border color:

<form runat="server">
<asp:Table runat="server" BorderColor="#FF0000"
BorderWidth="5" GridLines="vertical">
<asp:TableRow>
<asp:TableCell>Hello</asp:TableCell>
<asp:TableCell>World</asp:TableCell>
</asp:TableRow>
</asp:Table>
</form>

The demonstration >>

Web Control Standard Properties Reference Web Control Standard Properties Reference