CSSGroupingRule - Web APIs 编辑
An object implementing the CSSGroupingRule
interface represents any CSS at-rule that contains other rules nested within it.
Objects deriving from it :
CSSConditionRule
and its children:CSSMediaRule
,CSSSupportsRule
, andCSSDocumentRule
.CSSPageRule
Syntax
The syntax is described using the WebIDL format.
interface CSSGroupingRule : CSSRule { readonly attribute CSSRuleList cssRules; unsigned long insertRule (DOMString rule, unsigned long index); void deleteRule (unsigned long index); }
Properties common to all CSSGroupingRule instances
The CSSGroupingRule
derives from CSSRule
and inherits all properties of this class. It has one specific property:
CSSGroupingRule.cssRules
Read only- Returns a
CSSRuleList
of the CSS rules in the media rule.
Methods common to all CSSGroupingRule instances
The CSSGroupingRule
derives from CSSRule
and inherits all methods of this class. It has two specific methods:
CSSGroupingRule.deleteRule
- Deletes a rule from the style sheet.
CSSGroupingRule.insertRule
- Inserts a new style rule into the current style sheet.
Specifications
Specification | Status | Comment |
---|---|---|
CSS Object Model (CSSOM) The definition of 'CSSGroupingRule' in that specification. | Working Draft | Initial definition. |
Browser compatibility
BCD tables only load in the browser
See also
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论