HBCMS更多的中文手册参考:

createStyleSheet Method

DHTML文档教程

Creates a style sheet for the document.

dhtml语法

oStylesheet = document.createStyleSheet( [sURL] [, iIndex])

Parameters

sURL Optional. Stringthat specifies how to add the style sheet to the document. If a file name is specified for the URL, the style information will be added as a link object. if the url contains style information, this information will be added to the style object.
iIndex Optional. Integerthat specifies the index that indicates where the new style sheet is inserted in the stylesheets collection. the default is to insert the new style sheet at the end of the collection.

return value

returns a styleSheet object.

DHTML代码范例

This example uses the createStyleSheet method to create a link to a style sheet.

document.createStyleSheet('styles.css');

是否符合公共标准

There is no public standard that applies to this method.

Applies To

document