CSSPageRule
is an interface representing a single CSS
@page
rule. It implements the
CSSRule
interface with a type value of
6
(
CSSRule.PAGE_RULE
).
The syntax is described using the WebIDL 格式。
interface CSSPageRule : CSSRule {
attribute DOMString selectorText;
readonly attribute CSSStyleDeclaration style;
};
由于
CSSRule
,
CSSPageRule
also implements the properties of this interface. It has the following specific properties:
CSSPageRule.selectorText
Represents the text of the page selector associated with the at-rule.
CSSPageRule.style
只读
Returns the declaration block associated with the at-rule.
由于
CSSRule
,
CSSPageRule
also implements the methods of that interface. It has no specific methods.
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
CSSPageRule
|
Chrome 45 | Edge 12 | Firefox 19 | IE Yes | Opera 32 | Safari Yes | WebView Android 45 | Chrome Android 45 | Firefox Android 19 | Opera Android 32 | Safari iOS Yes | Samsung Internet Android 5.0 |
selectorText
|
Chrome Yes | Edge 12 | Firefox No | IE Yes | Opera Yes | Safari Yes | WebView Android Yes | Chrome Android Yes | Firefox Android ? | Opera Android Yes | Safari iOS Yes | Samsung Internet Android Yes |
style
|
Chrome Yes | Edge 12 | Firefox Yes | IE ? | Opera Yes | Safari Yes | WebView Android Yes | Chrome Android Yes | Firefox Android Yes | Opera Android Yes | Safari iOS Yes | Samsung Internet Android Yes |
完整支持
不支持
兼容性未知
CSSPageRule
AnimationEvent
CSS
CSSConditionRule
CSSGroupingRule
CSSKeyframeRule
CSSKeyframesRule
CSSMediaRule
CSSNamespaceRule
CSSRule
CSSRuleList
CSSStyleDeclaration
CSSStyleRule
CSSStyleSheet
CSSSupportsRule
CaretPosition
LinkStyle
MediaQueryList
MediaQueryListListener
Screen
StyleSheet
StyleSheetList
TransitionEvent