Latest web development tutorials

ASP.NET Style Properties

Web Control Standard Properties Reference Web Control Standard Properties Reference

Definition and Usage

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

grammar

<asp:webcontrolid="id" Style="style"runat="server" />
属性 描述
style 字符串,规定内联样式表的 CSS 样式。


Examples

The following examples set the Button control's CSS styles:

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

The demonstration >>

Web Control Standard Properties Reference Web Control Standard Properties Reference