ASP.NET BorderWidth 属性
定义和用法
BorderWidth 属性用于设置或返回控件的边框宽度。
语法
<asp:webcontrol id="id" BorderWidth="length" runat="server" />
| 值 | 描述 |
|---|---|
| length | 边框的宽度。必须是合法的.NET长度单位。合法的长度单位是 cm, mm, in, pt, pc 或 px。 |
实例
本例设置表格的边框宽度:
<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>
实例
- 设置 Table 控件的 BorderWidth