Javascript [Electronic resources] : The Definitive Guide (4th Edition)

David Flanagan

نسخه متنی -صفحه : 844/ 691
نمايش فراداده

Availability

DOM Level 2 StyleSheets

Properties

readonly

StyleSheet

sheet

The StyleSheet object associated with this node.

Description

In DOM implementations that support the StyleSheets module, this interface is implemented by any Document node that links to a style sheet or defines an inline style sheet. The sheet property then provides a way to obtain the StyleSheet object associated with the node.

In HTML documents, the <style> and <link> elements implement this interface. Those elements are represented by the HTMLStyleElement and HTMLLinkElement interfaces, which do not have their own entries in this reference. See HTMLElement for more information about those interfaces.

In XML documents, style sheets are included with a processing instruction. See ProcessingInstruction for more information.

See Also

HTMLElement, ProcessingInstruction