From c3ff7791fbeead7f2bc9a383295ce6d5174f100a Mon Sep 17 00:00:00 2001 From: Pathen Date: Fri, 23 Jul 2021 02:51:40 +0800 Subject: Fix Web/CSS/@font-face/font-display, zh-CN (#1653) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The colon in the example is incorrect, should fix “:”to“ :” . --- .../zh-cn/web/css/@font-face/font-display/index.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'files/zh-cn/web/css') diff --git a/files/zh-cn/web/css/@font-face/font-display/index.html b/files/zh-cn/web/css/@font-face/font-display/index.html index 5dd4424fb9..cda4222d52 100644 --- a/files/zh-cn/web/css/@font-face/font-display/index.html +++ b/files/zh-cn/web/css/@font-face/font-display/index.html @@ -29,11 +29,11 @@ translation_of: Web/CSS/@font-face/font-display

语法

/* 关键字值 */
-font-display:auto;
-font-display:block;
-font-display:swap;
-font-display:fallback;
-font-display:optional;
+font-display: auto; +font-display: block; +font-display: swap; +font-display: fallback; +font-display: optional;

属性值

@@ -57,12 +57,12 @@ font-display:optional;

例子

@ font-face {
-  font-family:ExampleFont;
-  src:url(/path/to/fonts/examplefont.woff)format('woff'),
+  font-family: ExampleFont;
+  src: url(/path/to/fonts/examplefont.woff)format('woff'),
        url(/path/to/fonts/examplefont.eot)format('eot');
-  font-weight:400;
-  font-style:normal;
-  font-display:fallback;
+  font-weight: 400;
+  font-style: normal;
+  font-display: fallback;
 }

规范

-- cgit v1.2.3-54-g00ecf