Name
rule — NN n/a IE 4 DOM n/a
Synopsis
A rule object
contains the combination of selector and style attribute/value pairs
defined within a style sheet. While you can obtain the selector
directly as a property, a script cannot quickly derive the style
attributes or values assigned in the rule without iterating through
all style attributes.
Object Model Reference
- IE
document.all.styleSheetID.rules(i)
Properties
|
|
|
|
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access