diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/web/api/cssconditionrule/index.html | |
parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip |
initial commit
Diffstat (limited to 'files/zh-cn/web/api/cssconditionrule/index.html')
-rw-r--r-- | files/zh-cn/web/api/cssconditionrule/index.html | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/files/zh-cn/web/api/cssconditionrule/index.html b/files/zh-cn/web/api/cssconditionrule/index.html new file mode 100644 index 0000000000..4ead8b26d9 --- /dev/null +++ b/files/zh-cn/web/api/cssconditionrule/index.html @@ -0,0 +1,67 @@ +--- +title: CSSConditionRule +slug: Web/API/CSSConditionRule +translation_of: Web/API/CSSConditionRule +--- +<p>{{ APIRef("CSSOM") }}</p> + +<p> </p> + +<p> </p> + +<p><strong>CSSConditionRule</strong> 对象表示单个条件 CSS 规则, 由条件和语句块组成。继承至 {{domxref("CSSGroupingRule")}}.</p> + +<p>从它派生的两个对象 : {{domxref("CSSMediaRule")}} and {{domxref("CSSSupportsRule")}}.</p> + +<h2 id="Syntax">Syntax</h2> + +<p>The syntax is described using the <a class="external" href="http://dev.w3.org/2006/webapi/WebIDL/" title="http://dev.w3.org/2006/webapi/WebIDL/">WebIDL</a> format.</p> + +<pre>interface CSSConditionRule : CSSGroupingRule { + attribute DOMString conditionText; +} +</pre> + +<h2 id="Properties">Properties</h2> + +<p>The <code>CSSConditionRule</code> derives from {{domxref("CSSRule")}}, {{domxref("CSSGroupingRule")}} and inherits all properties of these classes. It has one specific property:</p> + +<dl> + <dt>{{domxref("CSSConditionRule.conditionText")}}</dt> + <dd>Represents the text of the condition of the rule.</dd> +</dl> + +<h2 id="Methods">Methods</h2> + +<p>The <code>CSSConditionRule</code> derives from {{domxref("CSSRule")}}, {{domxref("CSSGroupingRule")}} and inherits all methods of these classes. It has no specific property of its own.</p> + +<h2 id="Specification" name="Specification">Specifications</h2> + +<table class="standard-table"> + <thead> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + </thead> + <tbody> + <tr> + <td>{{ SpecName('CSS3 Conditional', '#the-cssconditionrule-interface', 'CSSConditionRule') }}</td> + <td>{{ Spec2('CSS3 Conditional') }}</td> + <td>Initial definition.</td> + </tr> + </tbody> +</table> + +<h2 id="Browser_compatibility">Browser compatibility</h2> + + + +<p>{{Compat("api.CSSConditionRule")}}</p> + +<h2 id="See_also">See also</h2> + +<ul> + <li><a href="/en/DOM/Using_dynamic_styling_information" title="en/DOM/Using_dynamic_styling_information">Using dynamic styling information</a></li> +</ul> |