Style
- Demonstration: Style
- Java API: org.zkoss.zul.Style
- JavaScript API: zul.utl.Style
Employment/Purpose
The style component used to specify CSS styles for the owner desktop.
Note:
- a
stylecomponent can appear anywhere in a zul page, but it affects all components in the samedesktop. getContent()simply gets the string that is set by setContent(). If you call setSrc() or call the constructor of Style(), getContent() still gets null.
Example

<style> a{ color:red; }</style>
Supported Events
- Inherited Supported Events: AbstractComponent
Supported Children
*NONE
Version History
| Version | Date | Content |
|---|---|---|
| 5.0.3 | June 2010 | The media property is supported. |