?
This document uses PHP Chinese website manual Release
BorderWidth 屬性用于設(shè)置或返回控件的邊框?qū)挾取?/p>
<asp:webcontrol?id="id"?BorderWidth="length"?runat="server"?/>
屬性 | 描述 |
---|---|
length | 邊框的寬度。必須是合法的 .NET 長度單位。合法的長度單位是:cm、mm、in、pt、pc 或 px。 |
下面的實例設(shè)置了表格的邊框?qū)挾龋?/p>
<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>?
設(shè)置 Button 控件的邊框?qū)挾龋◣в新暶骱湍_本)
<!DOCTYPE?html> <html> <head> <script??runat="server"> Sub?ChangeBorderWidth(obj?As?Object,?e?As?EventArgs) ??????button1.BorderWidth?=?Unit.Parse("10px") End?Sub </script> </head> <body> <form?runat="server"> <asp:Button?id="button1"?runat="server"?BorderWidth="5px"?Text="Change"?OnClick="ChangeBorderWidth"?/> </form> </body> </html>