HBCMS更多的中文手册参考:

imports Collection

DHTML文档教程

Retrieves a collection of all the imported style sheets defined for the respective stylesheet object.

dhtml语法

[ oColl = ] styleSheet.imports
[ oObject = ] styleSheet.imports(iIndex)

DHTML可能的值

oCollArray of imported style sheets.
oObjectReference to an individual item in the array of elements contained by the object.
iIndexRequired. Integer that specifies the zero-based index of the item to be returned.

Members Table

PropertyDescription
length Sets or retrieves the number of objects in a collection.
MethodDescription
item Retrieves an object from the filters collection or various other collections.
nameditem   Retrieves an object or a collection from the specified collection.

Remarks

An imported style sheet is one that is brought into the document using the cascading style sheets (CSS) @import rule.

DHTML代码范例

This example shows how to display the URL paths of the imported style sheets in the document.

for ( i = 0; i < document.styleSheets.length; i++ )
{
if ( document.styleSheets(i).owningElement.tagName == "STYLE" )
{
for ( j = 0; j < document.styleSheets(i).imports.length; j++ )
alert("Imported style sheet " + j + " is at " +
document.styleSheets(i).imports(j).href);
}
}

是否符合公共标准

There is no public standard that applies to this collection.

Applies To

styleSheet