ASP.NET StyleProperty


Web 控件标准属性参考手册Web Controls Standard Property Reference

Definition and Usage

The Style property is used to set or return inline CSS styles for a control.

Syntax

<asp:webcontrol id="id" Style="style" runat="server" />
 
Property Description
style A string that specifies the CSS styles of the inline stylesheet.


Example

The following example sets the CSS styles of the Button control:

<form runat="server">
<asp:Button id="Button" Text="Submit" runat="server"
Style="font: 12pt Verdana;font-weight:700;color:orange;" />
</form>

Show Example »

Web 控件标准属性参考手册Web Controls Standard Property Reference Other Extensions