diff options
author | Peter Bengtsson <mail@peterbe.com> | 2021-06-17 13:35:36 -0400 |
---|---|---|
committer | Irvin <irvinfly@gmail.com> | 2021-06-18 01:41:27 +0800 |
commit | d490e42ffe823173477b841ec397105bd06cb336 (patch) | |
tree | 0c0a208e8e7cffa0f37cbaa2b463f4448ba9edc9 /files/zh-cn/web/css/font-variant | |
parent | 64471936f0c8ee43b7a35c4a020c6435e64dfcaf (diff) | |
download | translated-content-d490e42ffe823173477b841ec397105bd06cb336.tar.gz translated-content-d490e42ffe823173477b841ec397105bd06cb336.tar.bz2 translated-content-d490e42ffe823173477b841ec397105bd06cb336.zip |
rid of $samples iframes
Diffstat (limited to 'files/zh-cn/web/css/font-variant')
-rw-r--r-- | files/zh-cn/web/css/font-variant/index.html | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/files/zh-cn/web/css/font-variant/index.html b/files/zh-cn/web/css/font-variant/index.html index a01120c3c3..f5aae7872a 100644 --- a/files/zh-cn/web/css/font-variant/index.html +++ b/files/zh-cn/web/css/font-variant/index.html @@ -44,22 +44,21 @@ font-variant: unset; <dd>规定与{{cssxref("font-variant-alternates")}}属性相关的关键字,可能的值包括:<code>lining-nums</code>, <code>oldstyle-nums</code>, <code>proportional-nums</code>, <code>tabular-nums</code>, <code>diagonal-fractions</code>, <code>stacked-fractions</code>, <code>ordinal</code> 和 <code>slashed-zero</code>。</dd> <dt><code><east-asian-variant-values></code>, <code><east-asian-width-values></code>, <code>ruby</code></dt> <dd>规定与{{cssxref("font-variant-east-asian")}}属性相关的关键字,可能的值包括:<code>jis78</code>, <code>jis83</code>, <code>jis90</code>, <code>jis04</code>, <code>simplified</code>, <code>traditional</code>, <code>full-width</code>, <code>proportional-width</code>, <code>ruby</code>。</dd> - <dt> - <h3 id="正式语法">正式语法</h3> - </dt> </dl> {{csssyntax}} <h2 id="示例">示例</h2> -<h3 id="HTML">HTML</h3> +<h3 id="Setting_the_small-caps_font_variant">Setting the small-caps font variant</h3> + +<h4 id="HTML">HTML</h4> <pre class="brush: html"><p class="normal">Firefox rocks!</p> <p class="small">Firefox rocks!</p> </pre> -<h3 id="CSS">CSS</h3> +<h4 id="CSS">CSS</h4> <pre class="brush: css">p.normal { font-variant: normal; @@ -69,9 +68,9 @@ p.small { } </pre> -<h3 id="结果">结果</h3> +<h4 id="Result">Result</h4> -<p><iframe class="live-sample-frame sample-code-frame" frameborder="0" id="frame_Example" src="https://mdn.mozillademos.org/en-US/docs/Web/CSS/font-variant$samples/Example?revision=1598093"></iframe></p> +<p>{{ EmbedLiveSample('Setting_the_small-caps_font_variant', '', '', '', 'Web/CSS/font-variant') }}</p> <h2 id="规范">规范</h2> @@ -106,11 +105,8 @@ p.small { <h2 id="Browser_compatibility" name="Browser_compatibility">浏览器兼容性</h2> -<div> - +<p>{{Compat}}</p> -<p>{{Compat("css.properties.font-variant")}}</p> -</div> <h2 id="参见">参见</h2> |