CSS分页规则
语法
这个语法是使用 WebIDL 格式.
interface CSSPageRule : CSSRule { attribute DOMString selectorText; readonly attribute CSSStyleDeclaration style; };
Properties
CSSRule
, CSSPageRule
也实现了此接口的属性。 它具有以下特定属性:
CSSPageRule.selectorText
(en-US)- 表示与规则关联的页面选择器的文本。
CSSPageRule.style
(en-US) 只读- 返回与规则关联的声明块。
Methods
作为 CSSRule
, CSSPageRule
的CSSPageRule还实现了该接口的方法。 它没有具体方法。
Specifications
规格 | 状态 | 注释 |
---|---|---|
CSS Object Model (CSSOM) CSSPageRule |
Working Draft |
没有变化 Document Object Model (DOM) Level 2 Style Specification |
Document Object Model (DOM) Level 2 Style Specification CSSPageRule |
Obsolete | 初始定义 |
Browser compatibility
BCD tables only load in the browser