ASP.NET Style Width property
Definition and Usage
Width property sets or returns the width of the control.
grammar
<asp:webcontrolid="id" Width="value"runat="server" />
属性 | 描述 |
---|---|
value | 控件的宽度。必须是像素值,或表示父对象宽度的百分比值。 |
Examples
The following example sets the width of the Button control:
<form runat="server">
<asp:Button id="button1" Text="Submit"
Width="150px" runat="server" />
</form>
<asp:Button id="button1" Text="Submit"
Width="150px" runat="server" />
</form>
The demonstration >>
Style Control