HBCMS更多的中文手册参考:

cssText参数属性

DHTML文档教程

Sets or retrieves the persisted representation of the style rule.

dhtml语法

object.cssText [ = sTxt ]

DHTML可能的值

sTxtString that specifies or receives the text.

The property is read/write. The property has no default value.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see about dynamic properties.

DHTML代码范例

This example uses the cssText property to retrieve the Cascading Style Sheets (CSS) style set on an object.

<P ID=oPara STYLE="color:'green'; font-weight:bold">
This is the test paragraph.</P>
:
<BUTTON onclick="alert(oPara.style.cssText)">
Get CSS attributes</BUTTON>
This feature requires Microsoft® Internet Explorer 5 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

是否符合公共标准

There is no public standard that applies to this property.

Applies To

runtimeStyle, style, styleSheet