ASP.NET BorderWidth property
Definition and Usage
BorderWidth property sets or returns the border width of the control.
grammar
<asp:webcontrolid="id" BorderWidth="length"runat="server" />
属性 | 描述 |
---|---|
length | 边框的宽度。必须是合法的 .NET 长度单位。合法的长度单位是:cm、mm、in、pt、pc 或 px。 |
Examples
The following examples set the table border width:
<form runat="server">
<asp:Table runat="server" BorderWidth="5" GridLines="vertical">
<asp:TableRow>
<asp:TableCell>Hello</asp:TableCell>
<asp:TableCell>World</asp:TableCell>
</asp:TableRow>
</asp:Table>
</form>
<asp:Table runat="server" 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