aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/html/element/optgroup
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2021-06-17 13:35:36 -0400
committerIrvin <irvinfly@gmail.com>2021-06-18 01:41:27 +0800
commitd490e42ffe823173477b841ec397105bd06cb336 (patch)
tree0c0a208e8e7cffa0f37cbaa2b463f4448ba9edc9 /files/zh-cn/web/html/element/optgroup
parent64471936f0c8ee43b7a35c4a020c6435e64dfcaf (diff)
downloadtranslated-content-d490e42ffe823173477b841ec397105bd06cb336.tar.gz
translated-content-d490e42ffe823173477b841ec397105bd06cb336.tar.bz2
translated-content-d490e42ffe823173477b841ec397105bd06cb336.zip
rid of $samples iframes
Diffstat (limited to 'files/zh-cn/web/html/element/optgroup')
-rw-r--r--files/zh-cn/web/html/element/optgroup/index.html37
1 files changed, 4 insertions, 33 deletions
diff --git a/files/zh-cn/web/html/element/optgroup/index.html b/files/zh-cn/web/html/element/optgroup/index.html
index 8ea407b546..c2fb23f845 100644
--- a/files/zh-cn/web/html/element/optgroup/index.html
+++ b/files/zh-cn/web/html/element/optgroup/index.html
@@ -61,7 +61,7 @@ translation_of: Web/HTML/Element/optgroup
<dd>选项组的名字,浏览器用以在用户界面中标记选项。使用这个元素时必须加上这个属性。</dd>
</dl>
-<h2 id="示例">示例</h2>
+<h2 id="Examples">示例</h2>
<pre class="brush: html">&lt;select&gt;
&lt;optgroup label="Group 1"&gt;
@@ -81,44 +81,15 @@ translation_of: Web/HTML/Element/optgroup
<h3 id="结果">结果</h3>
-<p><iframe class="live-sample-frame sample-code-frame" frameborder="0" id="frame_Example" src="https://mdn.mozillademos.org/en-US/docs/Web/HTML/Element/optgroup$samples/Example?revision=1617230"></iframe></p>
+<p>{{EmbedLiveSample("Examples")}}</p>
<h2 id="规范">规范</h2>
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">规范</th>
- <th scope="col">状态</th>
- <th scope="col">注释</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName('HTML WHATWG', 'the-button-element.html#the-optgroup-element', '&lt;optgroup&gt;')}}</td>
- <td>{{Spec2('HTML WHATWG')}}</td>
- <td></td>
- </tr>
- <tr>
- <td>{{SpecName('HTML5 W3C', 'forms.html#the-optgroup-element', '&lt;optgroup&gt;')}}</td>
- <td>{{Spec2('HTML5 W3C')}}</td>
- <td></td>
- </tr>
- <tr>
- <td>{{SpecName('HTML4.01', 'interact/forms.html#h-17.6', '&lt;optgroup&gt;')}}</td>
- <td>{{Spec2('HTML4.01')}}</td>
- <td></td>
- </tr>
- </tbody>
-</table>
+<p>{{Specifications}}</p>
<h2 id="Browser_compatibility" name="Browser_compatibility">浏览器兼容性</h2>
-<p>{{Compat("html.elements.optgroup")}}</p>
-
-<div id="compat-desktop"></div>
-
-<div id="compat-mobile"></div>
+<p>{{Compat}}</p>
<h2 id="另请参阅">另请参阅</h2>