diff options
Diffstat (limited to 'files/zh-cn/web')
332 files changed, 747 insertions, 438 deletions
diff --git a/files/zh-cn/web/api/documentorshadowroot/elementfrompoint/index.html b/files/zh-cn/web/api/document/elementfrompoint/index.html index e7e96436dc..5a0cdd7ffc 100644 --- a/files/zh-cn/web/api/documentorshadowroot/elementfrompoint/index.html +++ b/files/zh-cn/web/api/document/elementfrompoint/index.html @@ -1,7 +1,8 @@ --- title: DocumentOrShadowRoot.elementFromPoint() -slug: Web/API/DocumentOrShadowRoot/elementFromPoint +slug: Web/API/Document/elementFromPoint translation_of: Web/API/DocumentOrShadowRoot/elementFromPoint +original_slug: Web/API/DocumentOrShadowRoot/elementFromPoint --- <p>{{APIRef("Shadow DOM")}}{{SeeCompatTable}}</p> diff --git a/files/zh-cn/web/api/documentorshadowroot/elementsfrompoint/index.html b/files/zh-cn/web/api/document/elementsfrompoint/index.html index 6036115eaf..bea911988b 100644 --- a/files/zh-cn/web/api/documentorshadowroot/elementsfrompoint/index.html +++ b/files/zh-cn/web/api/document/elementsfrompoint/index.html @@ -1,7 +1,8 @@ --- title: DocumentOrShadowRoot.elementsFromPoint() -slug: Web/API/DocumentOrShadowRoot/elementsFromPoint +slug: Web/API/Document/elementsFromPoint translation_of: Web/API/DocumentOrShadowRoot/elementsFromPoint +original_slug: Web/API/DocumentOrShadowRoot/elementsFromPoint --- <p>{{APIRef("Shadow DOM")}}{{SeeCompatTable}}</p> diff --git a/files/zh-cn/web/api/documentorshadowroot/index.html b/files/zh-cn/web/api/documentorshadowroot/index.html deleted file mode 100644 index 0e3dd27717..0000000000 --- a/files/zh-cn/web/api/documentorshadowroot/index.html +++ /dev/null @@ -1,78 +0,0 @@ ---- -title: DocumentOrShadowRoot -slug: Web/API/DocumentOrShadowRoot -tags: - - API - - DocumentOrShadowRoot - - Interface - - NeedsTranslation - - Reference - - TopicStub - - shadow dom -translation_of: Web/API/DocumentOrShadowRoot ---- -<div>{{APIRef("Web Components")}}</div> - -<p><span class="seoSummary"><a href="/zh-CN/docs/Web/Web_Components/Using_shadow_DOM">Shadow DOM API</a> 的 <strong><code>DocumentOrShadowRoot</code></strong> 接口提供了 documents 与 shadow roots 之间共享的 API。The following features are included in both {{DOMxRef("Document")}} and {{DOMxRef("ShadowRoot")}}.</span></p> - -<h2 id="属性">属性</h2> - -<dl> - <dt>{{DOMxRef("DocumentOrShadowRoot.activeElement")}}{{ReadOnlyInline}}</dt> - <dd>Returns the {{DOMxRef('Element')}} within the shadow tree that has focus.</dd> - <dt>{{DOMxRef("DocumentOrShadowRoot.fullscreenElement")}}{{ReadOnlyInline}}</dt> - <dd>Returns the {{DOMxRef('Element')}} that's currently in full screen mode for this document.</dd> - <dt>{{DOMxRef("DocumentOrShadowRoot.pointerLockElement")}} {{Experimental_Inline}}{{ReadOnlyInline}}</dt> - <dd>Returns the element set as the target for mouse events while the pointer is locked. It returns <code>null</code> if lock is pending, the pointer is unlocked, or if the target is in another document.</dd> - <dt>{{DOMxRef("DocumentOrShadowRoot.styleSheets")}}{{ReadOnlyInline}}</dt> - <dd>Returns a {{DOMxRef('StyleSheetList')}} of {{DOMxRef('CSSStyleSheet')}} objects for stylesheets explicitly linked into, or embedded in a document.</dd> -</dl> - -<h2 id="方法">方法</h2> - -<dl> - <dt>{{DOMxRef("DocumentOrShadowRoot.caretPositionFromPoint()")}}</dt> - <dd>Returns a {{DOMxRef('CaretPosition')}} object containing the DOM node containing the caret, and caret's character offset within that node.</dd> - <dt>{{DOMxRef("DocumentOrShadowRoot.elementFromPoint()")}}</dt> - <dd>Returns the topmost element at the specified coordinates.</dd> - <dt>{{DOMxRef("DocumentOrShadowRoot.elementsFromPoint()")}}</dt> - <dd>Returns an array of all elements at the specified coordinates.</dd> - <dt>{{DOMxRef("DocumentOrShadowRoot.getSelection()")}}</dt> - <dd>Returns a {{DOMxRef('Selection')}} object representing the range of text selected by the user, or the current position of the caret.</dd> - <dt>{{DOMxRef("DocumentOrShadowRoot.nodeFromPoint()")}} {{non-standard_inline}}</dt> - <dd>Returns the topmost node at the specified coordinates.</dd> - <dt>{{DOMxRef("DocumentOrShadowRoot.nodesFromPoint()")}} {{non-standard_inline}}</dt> - <dd>Returns an array of all nodes at the specified coordinates.</dd> -</dl> - -<h2 id="Specifications">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('Shadow DOM','#extensions-to-the-documentorshadowroot-mixin','DocumentOrShadowRoot')}}</td> - <td>{{Spec2('Shadow DOM')}}</td> - <td>Implementation in Shadow DOM.</td> - </tr> - <tr> - <td>{{SpecName('DOM WHATWG','#mixin-documentorshadowroot','DocumentOrShadowRoot')}}</td> - <td>{{Spec2('DOM WHATWG')}}</td> - <td>Initial definition.</td> - </tr> - </tbody> -</table> - -<h2 id="浏览器兼容性">浏览器兼容性</h2> - - - -<p>{{Compat("api.DocumentOrShadowRoot")}}</p> - -<p>[1] This interface's features are still implemented on the {{DOMxRef("Document")}} object.</p> diff --git a/files/zh-cn/web/api/readablestream/index.html b/files/zh-cn/web/api/readablestream/index.html index 445fc134d1..166da23de2 100644 --- a/files/zh-cn/web/api/readablestream/index.html +++ b/files/zh-cn/web/api/readablestream/index.html @@ -64,7 +64,7 @@ translation_of: Web/API/ReadableStream start(controller) { // 下面的函数处理每个数据块 function push() { - // "done"是一个布尔型,"value"是一个Unit8Array + // "done"是一个布尔型,"value"是一个Uint8Array reader.read().then(({ done, value }) => { // 判断是否还有可读的数据? if (done) { diff --git a/files/zh-cn/web/css/--_star_/index.html b/files/zh-cn/web/css/--_star_/index.html index 039eca7b94..f955a78750 100644 --- a/files/zh-cn/web/css/--_star_/index.html +++ b/files/zh-cn/web/css/--_star_/index.html @@ -29,7 +29,7 @@ translation_of: Web/CSS/--* <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/-moz-image-rect/index.html b/files/zh-cn/web/css/-moz-image-rect/index.html index 92accbc37e..824626a7b9 100644 --- a/files/zh-cn/web/css/-moz-image-rect/index.html +++ b/files/zh-cn/web/css/-moz-image-rect/index.html @@ -34,8 +34,7 @@ translation_of: Web/CSS/-moz-image-rect <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{CSSSyntax}} -</pre> +{{CSSSyntax}} <h2 id="Example">Example</h2> diff --git a/files/zh-cn/web/css/-moz-outline-radius/index.html b/files/zh-cn/web/css/-moz-outline-radius/index.html index 334e0e7da7..d9aa67fd04 100644 --- a/files/zh-cn/web/css/-moz-outline-radius/index.html +++ b/files/zh-cn/web/css/-moz-outline-radius/index.html @@ -58,7 +58,7 @@ translation_of: Web/CSS/-moz-outline-radius <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/-moz-user-input/index.html b/files/zh-cn/web/css/-moz-user-input/index.html index 1478883378..ac959b1014 100644 --- a/files/zh-cn/web/css/-moz-user-input/index.html +++ b/files/zh-cn/web/css/-moz-user-input/index.html @@ -41,7 +41,7 @@ translation_of: Web/CSS/-moz-user-input <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Examples">Examples</h2> diff --git a/files/zh-cn/web/css/-webkit-border-before/index.html b/files/zh-cn/web/css/-webkit-border-before/index.html index 2d0b51372f..ef515fd03d 100644 --- a/files/zh-cn/web/css/-webkit-border-before/index.html +++ b/files/zh-cn/web/css/-webkit-border-before/index.html @@ -58,7 +58,7 @@ translation_of: Web/CSS/-webkit-border-before <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/-webkit-mask-attachment/index.html b/files/zh-cn/web/css/-webkit-mask-attachment/index.html index 82e4440a9f..d9eeb59593 100644 --- a/files/zh-cn/web/css/-webkit-mask-attachment/index.html +++ b/files/zh-cn/web/css/-webkit-mask-attachment/index.html @@ -37,7 +37,7 @@ translation_of: Web/CSS/-webkit-mask-attachment <h3 id="使用语法">使用语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/-webkit-tap-highlight-color/index.html b/files/zh-cn/web/css/-webkit-tap-highlight-color/index.html index 59f16b6fca..e8c3f4e097 100644 --- a/files/zh-cn/web/css/-webkit-tap-highlight-color/index.html +++ b/files/zh-cn/web/css/-webkit-tap-highlight-color/index.html @@ -24,7 +24,7 @@ translation_of: Web/CSS/-webkit-tap-highlight-color <h3 id="基本语法">基本语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="规范">规范</h2> diff --git a/files/zh-cn/web/css/@charset/index.html b/files/zh-cn/web/css/@charset/index.html index ae867c1752..c01e171106 100644 --- a/files/zh-cn/web/css/@charset/index.html +++ b/files/zh-cn/web/css/@charset/index.html @@ -40,8 +40,7 @@ translation_of: Web/CSS/@charset <h3 id="语法格式">语法格式</h3> -<pre class="syntaxbox">{{csssyntax}} -</pre> +{{csssyntax}} <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/css/@counter-style/additive-symbols/index.html b/files/zh-cn/web/css/@counter-style/additive-symbols/index.html index 5d5fe95399..3d760857d0 100644 --- a/files/zh-cn/web/css/@counter-style/additive-symbols/index.html +++ b/files/zh-cn/web/css/@counter-style/additive-symbols/index.html @@ -19,7 +19,7 @@ additive-symbols: 3 "0", 2 url(symbol.png);</pre> <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/@counter-style/pad/index.html b/files/zh-cn/web/css/@counter-style/pad/index.html index 9dcfb0328a..a101f98c8f 100644 --- a/files/zh-cn/web/css/@counter-style/pad/index.html +++ b/files/zh-cn/web/css/@counter-style/pad/index.html @@ -23,7 +23,7 @@ translation_of: Web/CSS/@counter-style/pad <h3 id="形式语法">形式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Example" name="Example">样例</h2> diff --git a/files/zh-cn/web/css/@counter-style/speak-as/index.html b/files/zh-cn/web/css/@counter-style/speak-as/index.html index 5a2031972a..1a6fc56748 100644 --- a/files/zh-cn/web/css/@counter-style/speak-as/index.html +++ b/files/zh-cn/web/css/@counter-style/speak-as/index.html @@ -53,7 +53,7 @@ speak-as: <counter-style-name>; <h3 id="语法_2">语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="例子">例子</h2> 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 be69002f0d..1129b0be2e 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 @@ -52,7 +52,7 @@ font-display:optional;</pre> <h3 id="形式化语法">形式化语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/css/@font-face/font-family/index.html b/files/zh-cn/web/css/@font-face/font-family/index.html index 1002d02fb4..9c22740f13 100644 --- a/files/zh-cn/web/css/@font-face/font-family/index.html +++ b/files/zh-cn/web/css/@font-face/font-family/index.html @@ -30,7 +30,7 @@ font-family: examplefont; <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/@font-face/font-style/index.html b/files/zh-cn/web/css/@font-face/font-style/index.html index a8c5e39654..10d0af4e08 100644 --- a/files/zh-cn/web/css/@font-face/font-style/index.html +++ b/files/zh-cn/web/css/@font-face/font-style/index.html @@ -33,7 +33,7 @@ font-style: oblique;</pre> <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Examples">Examples</h2> diff --git a/files/zh-cn/web/css/@font-face/index.html b/files/zh-cn/web/css/@font-face/index.html index 1f5430e318..e362aaa835 100644 --- a/files/zh-cn/web/css/@font-face/index.html +++ b/files/zh-cn/web/css/@font-face/index.html @@ -36,7 +36,7 @@ translation_of: Web/CSS/@font-face <h2 id="语法">语法</h2> -<pre class="notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h3 id="取值">取值</h3> diff --git a/files/zh-cn/web/css/@font-face/src/index.html b/files/zh-cn/web/css/@font-face/src/index.html index e209486348..5b4370ea1e 100644 --- a/files/zh-cn/web/css/@font-face/src/index.html +++ b/files/zh-cn/web/css/@font-face/src/index.html @@ -44,7 +44,7 @@ src: local(font), url(path/to/font.svg) format("svg"), <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Examples">Examples</h2> diff --git a/files/zh-cn/web/css/@font-feature-values/index.html b/files/zh-cn/web/css/@font-feature-values/index.html index 1a4c5ce32b..acc7c855fd 100644 --- a/files/zh-cn/web/css/@font-feature-values/index.html +++ b/files/zh-cn/web/css/@font-feature-values/index.html @@ -49,7 +49,7 @@ translation_of: Web/CSS/@font-feature-values <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Specifications">Specifications</h2> diff --git a/files/zh-cn/web/css/@import/index.html b/files/zh-cn/web/css/@import/index.html index 8fb3a8aefa..71a6ea41c3 100644 --- a/files/zh-cn/web/css/@import/index.html +++ b/files/zh-cn/web/css/@import/index.html @@ -31,7 +31,7 @@ translation_of: Web/CSS/@import <h2 id="正规语法">正规语法</h2> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/@keyframes/index.html b/files/zh-cn/web/css/@keyframes/index.html index 369504b8e3..22e983100c 100644 --- a/files/zh-cn/web/css/@keyframes/index.html +++ b/files/zh-cn/web/css/@keyframes/index.html @@ -103,7 +103,7 @@ translation_of: Web/CSS/@keyframes <dt> <h3 id="形式化语法">形式化语法</h3> - <pre class="notranslate">{{csssyntax}}</pre> + {{csssyntax}} </dt> </dl> diff --git a/files/zh-cn/web/css/@media/index.html b/files/zh-cn/web/css/@media/index.html index 90a976dd6f..677e41909b 100644 --- a/files/zh-cn/web/css/@media/index.html +++ b/files/zh-cn/web/css/@media/index.html @@ -45,7 +45,7 @@ translation_of: Web/CSS/@media <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="媒体特性">媒体特性</h2> diff --git a/files/zh-cn/web/css/@namespace/index.html b/files/zh-cn/web/css/@namespace/index.html index e14eb7d0cb..f521da521a 100644 --- a/files/zh-cn/web/css/@namespace/index.html +++ b/files/zh-cn/web/css/@namespace/index.html @@ -36,7 +36,7 @@ translation_of: Web/CSS/@namespace <h3 id="标准语法">标准语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/@page/index.html b/files/zh-cn/web/css/@page/index.html index 3defa1a600..31ee00948e 100644 --- a/files/zh-cn/web/css/@page/index.html +++ b/files/zh-cn/web/css/@page/index.html @@ -47,7 +47,7 @@ translation_of: Web/CSS/@page <h3 id="形式化语法">形式化语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/@property/index.html b/files/zh-cn/web/css/@property/index.html new file mode 100644 index 0000000000..164b4d5b21 --- /dev/null +++ b/files/zh-cn/web/css/@property/index.html @@ -0,0 +1,89 @@ +--- +title: '@property' +slug: Web/CSS/@property +tags: + - At-rule + - CSS + - Reference + - Web + - Property + - Houdini +--- +<div>{{CSSRef}}{{SeeCompatTable}}</div> + +<p><strong><code>@property</code></strong> <a href="/zh-CN/docs/Web/CSS">CSS</a> {{cssxref("at-rule")}}是<a href="/en-US/docs/Web/Houdini">CSS Houdini</a> API的一部分, 它允许开发者显式地定义他们的{{cssxref('--*', 'CSS自定义属性')}}, 允许进行属性类型检查、设定默认值以及定义该自定义属性是否可以被继承。</p> + +<p><code>@property</code> 规则提供了一个直接在样式表中注册自定义属性的方式,而无需运行任何JS代码。有效的 <code>@property</code> 规则会注册一个自定义属性, 就像 {{domxref('CSS.registerProperty')}} 函数被使用同样的参数调用了一样。</p> + +<h2 id="Syntax">Syntax(语法描述符)</h2> + +<pre class="brush: css no-line-numbers">@property --property-name { + syntax: '<color>'; + inherits: false; + initial-value: #c0ffee; +}</pre> + +<p>一个有效的 <code>@property</code> 规则代表一项自定义属性的注册,使用自定义属性名作为规则内代码序列的序部。</p> + +<p><code>@property</code> 规则中 <strong>syntax</strong> 和 <strong>inherits</strong> 描述符是必需的; 如果其中任何一项缺失, 整条规则都将失效并且会被忽略。 <strong>initial-value</strong> 描述符仅在syntax描述符为通用syntax定义时是可选的,否则<strong>initial-value</strong>也是必需的——如果此时该描述符缺失,整条规则都将失效且被忽略。</p> + +<p>未知的描述符自身都是无效的,且会被忽略。但是不会造成整条<code>@property</code>规则的失效。</p> + +<h2 id="Examples">实例</h2> + +<p>为 <code>--my-color</code> {{cssxref('--*', '自定义属性')}}添加颜色值类型检测、设置默认值并且设置属性值不允许被继承。</p> + +<p>使用 <a href="/en-US/docs/Web/CSS">CSS</a> {{cssxref('@property')}} <a href="/en-US/docs/Web/CSS/At-rule">规则</a>:</p> + +<pre class="brush: css">@property --my-color { + syntax: '<color>'; + inherits: false; + initial-value: #c0ffee; +} +</pre> + +<p>使用 <a href="/en-US/docs/Web/JavaScript">JavaScript中的</a> {{domxref('CSS.registerProperty')}}函数:</p> + +<pre class="brush: js">window.CSS.registerProperty({ + name: '--my-color', + syntax: '<color>', + inherits: false, + initialValue: '#c0ffee', +}); +</pre> + +<h2 id="Formal_syntax">标准语法</h2> + +<pre class="brush: css">{{csssyntax}}</pre> + +<h2 id="Specifications">规范</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">规范</th> + <th scope="col">状态</th> + <th scope="col">提案</th> + </tr> + <tr> + <td>{{SpecName('CSS Properties and Values API', '#at-property-rule')}}</td> + <td>{{Spec2('CSS Properties and Values API')}}</td> + <td>初始定义.</td> + </tr> + </tbody> +</table> + +<h2 id="Browser_compatibility">浏览器兼容性</h2> + +<div class="hidden">The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> and send us a pull request.</div> + +<p>{{Compat("css.at-rules.property")}}</p> + +<h2 id="See_also">另见</h2> + +<ul> + <li><a href="/zh-CN/docs/Web/API/CSS_Properties_and_Values_API">CSS属性与值 API</a></li> + <li><a href="/zh-CN/docs/Web/API/CSS_Painting_API">CSS 绘图 API</a></li> + <li><a href="/zh-CN/docs/Web/API/CSS_Typed_OM_API">CSS 类型对象模型</a></li> + <li><a href="/zh-CN/docs/Web/Houdini">CSS Houdini</a></li> +</ul> diff --git a/files/zh-cn/web/css/@property/inherits/index.html b/files/zh-cn/web/css/@property/inherits/index.html new file mode 100644 index 0000000000..c2421f9535 --- /dev/null +++ b/files/zh-cn/web/css/@property/inherits/index.html @@ -0,0 +1,100 @@ +--- +title: '继承性' +slug: Web/CSS/@property/inherits +tags: + - CSS + - Reference + - Web + - Property + - Houdini +--- +<div>{{CSSRef}}{{SeeCompatTable}}</div> + +<p><strong><code>inherits</code></strong> <a href="/en-US/docs/Web/CSS">CSS</a> 描述符在使用{{cssxref("@property")}} {{cssxref("at-rule")}}时是必需的,它控制由 <code>@property</code>声明注册的自定义属性默认情况下是否会被继承。</p> + +<h2 id="Syntax">Syntax(类型描述符)</h2> + +<pre class="brush: css no-line-numbers">@property --property-name { + syntax: '<color>'; + inherits: false; + initial-value: #c0ffee; +} + +@property --property-name { + syntax: '<color>'; + inherits: true; + initial-value: #c0ffee; +} +</pre> + +<h2 id="Values">取值</h2> + +<dl> + <dt><code>true</code></dt> + <dd>属性默认继承</dd> + <dt><code>false</code></dt> + <dd>属性默认不继承</dd> +</dl> + +<h2 id="Formal_definition">规范定义</h2> + +<p>{{cssinfo}}</p> + +<h2 id="Formal_syntax">标准语法</h2> + +<pre class="brush: css">{{csssyntax}}</pre> + +<h2 id="Examples">实例</h2> + +<p>为 <code>--my-color</code> {{cssxref('--*', '自定义属性')}}添加颜色值类型检测、设置默认值并且设置属性值不允许被继承。</p> + +<p>使用 <a href="/en-US/docs/Web/CSS">CSS</a> {{cssxref('@property')}} <a href="/en-US/docs/Web/CSS/At-rule">@规则</a>:</p> + +<pre class="brush: css">@property --my-color { + syntax: '<color>'; + inherits: false; + initial-value: #c0ffee; +} +</pre> + +<p>使用 <a href="/en-US/docs/Web/JavaScript">JavaScript中的</a> {{domxref('CSS.registerProperty')}}函数:</p> + +<pre class="brush: js">window.CSS.registerProperty({ + name: '--my-color', + syntax: '<color>', + inherits: false, + initialValue: '#c0ffee', +}); +</pre> + +<h2 id="Specifications">规范</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">规范</th> + <th scope="col">状态</th> + <th scope="col">提议</th> + </tr> + <tr> + <td>{{SpecName('CSS Properties and Values API', '#inherits-descriptor', 'inherits')}}</td> + <td>{{Spec2('CSS Properties and Values API')}}</td> + <td>初始定义.</td> + </tr> + </tbody> +</table> + +<h2 id="Browser_compatibility">浏览器兼容性</h2> + +<div class="hidden">The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> and send us a pull request.</div> + +<p>{{Compat("css.at-rules.property.inherits")}}</p> + +<h2 id="See_also">另见</h2> + +<ul> + <li><a href="/zh-CN/docs/Web/API/CSS_Properties_and_Values_API">CSS属性与值 API</a></li> + <li><a href="/zh-CN/docs/Web/API/CSS_Painting_API">CSS 绘图 API</a></li> + <li><a href="/zh-CN/docs/Web/API/CSS_Typed_OM_API">CSS 类型对象模型</a></li> + <li><a href="/zh-CN/docs/Web/Houdini">CSS Houdini</a></li> +</ul>
\ No newline at end of file diff --git a/files/zh-cn/web/css/@property/initial-value/index.html b/files/zh-cn/web/css/@property/initial-value/index.html new file mode 100644 index 0000000000..61363a59fb --- /dev/null +++ b/files/zh-cn/web/css/@property/initial-value/index.html @@ -0,0 +1,101 @@ +--- +title: '初始值' +slug: Web/CSS/@property/initial-value +tags: + - CSS + - Reference + - Web + - Property + - Houdini +--- + +<div>{{CSSRef}}{{SeeCompatTable}}</div> + +<p><strong><code>initial-value</code></strong> <a href="/en-US/docs/Web/CSS">CSS</a>描述符在使用{{cssxref("@property")}} {{cssxref("at-rule")}}的时候是必需的,除非syntax属性接受了任何有效的token流。 它为属性设置初始值。</p> + +<p>被选定为<code>initial-value</code>的参数,依照<code>syntax</code>描述符定义,必须可以正确地解析。 因此,如果<code>syntax</code>描述符为<code><color></code>,那么初始值必须是一个有效的{{cssxref("color")}}值。</p> + +<h2 id="Syntax">语法</h2> + +<pre class="brush: css no-line-numbers">@property --property-name { + syntax: '<color>'; + inherits: false; + initial-value: #c0ffee; +} + +@property --property-name { + syntax: '<color>'; + inherits: true; + initial-value: #c0ffee; +}</pre> + +<h2 id="Values">取值</h2> + +<p>对于设定的<code>syntax</code>,具有正确值的字符串。</p> + +<h2 id="Formal_definition">标准定义</h2> + +<p>{{cssinfo}}</p> + +<h2 id="Formal_syntax">标准语法</h2> + +<pre class="brush: css">{{csssyntax}}</pre> + +<h2 id="Examples">实例</h2> + +<p>为 <code>--my-color</code> {{cssxref('--*', '自定义属性')}}添加颜色值类型检测、设置默认值并且设置属性值不允许被继承。</p> + +<p>使用 <a href="/en-US/docs/Web/CSS">CSS</a> {{cssxref('@property')}} <a href="/en-US/docs/Web/CSS/At-rule">规则</a>:</p> + +<pre class="brush: css">@property --my-color { + syntax: '<color>'; + inherits: false; + initial-value: #c0ffee; +} +</pre> + +<p>使用 <a href="/en-US/docs/Web/JavaScript">JavaScript中的</a> {{domxref('CSS.registerProperty')}}函数:</p> + +<pre class="brush: js">window.CSS.registerProperty({ + name: '--my-color', + syntax: '<color>', + inherits: false, + initialValue: '#c0ffee', +}); +</pre> + +<h2 id="Formal_syntax">标准语法</h2> + +<pre class="brush: css">{{csssyntax}}</pre> + +<h2 id="Specifications">规范</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">规范</th> + <th scope="col">状态</th> + <th scope="col">提案</th> + </tr> + <tr> + <td>{{SpecName('CSS Properties and Values API', '#at-property-rule')}}</td> + <td>{{Spec2('CSS Properties and Values API')}}</td> + <td>初始定义.</td> + </tr> + </tbody> +</table> + +<h2 id="Browser_compatibility">浏览器兼容性</h2> + +<div class="hidden">The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> and send us a pull request.</div> + +<p>{{Compat("css.at-rules.property")}}</p> + +<h2 id="See_also">另见</h2> + +<ul> + <li><a href="/zh-CN/docs/Web/API/CSS_Properties_and_Values_API">CSS属性与值 API</a></li> + <li><a href="/zh-CN/docs/Web/API/CSS_Painting_API">CSS 绘图 API</a></li> + <li><a href="/zh-CN/docs/Web/API/CSS_Typed_OM_API">CSS 类型对象模型</a></li> + <li><a href="/zh-CN/docs/Web/Houdini">CSS Houdini</a></li> +</ul> diff --git a/files/zh-cn/web/css/@property/syntax/index.html b/files/zh-cn/web/css/@property/syntax/index.html new file mode 100644 index 0000000000..ab6fae937d --- /dev/null +++ b/files/zh-cn/web/css/@property/syntax/index.html @@ -0,0 +1,128 @@ +--- +title: syntax +slug: Web/CSS/@property/syntax +tags: + - CSS + - Reference + - Web + - Property + - Houdini +--- +<div>{{CSSRef}}{{SeeCompatTable}}</div> + +<p><strong><code>syntax</code></strong> <a href="/en-US/docs/Web/CSS">CSS</a> 描述符在使用{{cssxref("@property")}} {{cssxref("at-rule")}}时是必需的,它描述了该属性所允许的语法结构。</p> + +<h2 id="Syntax">Syntax</h2> + +<p>如下是所有的有效syntax字符串:</p> + +<pre class="brush: css no-line-numbers">syntax: '<color>'; /* 接收一个颜色值 */ + +syntax: '<length> | <percentage>'; /* 接收长度或百分比参数,但是二者之间不进行计算合并 */ + +syntax: 'small | medium | large'; /* 接收这些参数值之一作为自定义标识符 */ + +syntax: '*'; /* 任何有效字符 */ +</pre> + +<h2 id="值">取值</h2> + +<p>规范定义的、受语法支持的字符串。支持的语法是<a href="/en-US/docs/Web/CSS/CSS_Types">CSS types</a>的子集。 这些可以单独使用,一些类型也可以结合使用。</p> + +<dl> + <dt><code>"<length>"</code></dt> + <dd>任何有效的 {{cssxref("<length>")}} 值.</dd> + <dt><code>"<number>"</code></dt> + <dd>任何有效的 {{cssxref("<number>")}} 值.</dd> + <dt><code>"<percentage>"</code></dt> + <dd>任何有效的 {{cssxref("<percentage>")}} 值.</dd> + <dt><code>"<length-percentage>"</code></dt> + <dd>任何有效的 {{cssxref("<length-percentage>")}} 值.</dd> + <dt><code>"<color>"</code></dt> + <dd>任何有效的 {{cssxref("<color>")}} 值.</dd> + <dt><code>"<image>"</code></dt> + <dd>任何有效的 {{cssxref("<image>")}} 值.</dd> + <dt><code>"<url>"</code></dt> + <dd>任何有效的 {{cssxref("url()","url()")}} 值.</dd> + <dt><code>"<integer>"</code></dt> + <dd>任何有效的 {{cssxref("<integer>")}} 值.</dd> + <dt><code>"<angle>"</code></dt> + <dd>任何有效的 {{cssxref("<angle>")}} 值.</dd> + <dt><code>"<time>"</code></dt> + <dd>任何有效的 {{cssxref("<time>")}} 值.</dd> + <dt><code>"<resolution>"</code></dt> + <dd>任何有效的 {{cssxref("<resolution>")}} 值.</dd> + <dt><code>"<transform-function>"</code></dt> + <dd>任何有效的 {{cssxref("<transform-function>")}} 值.</dd> + <dt><code>"<custom-ident>"</code></dt> + <dd>任何有效的 {{cssxref("<custom-ident>")}} 值.</dd> + <dt><code>"<transform-list>"</code></dt> + <dd>A list of valid {{cssxref("<transform-function>")}} 值.</dd> +</dl> + +<h2 id="Formal_definition">标准定义</h2> + +<p>{{cssinfo}}</p> + +<h2 id="Formal_syntax">标准语法</h2> + +<pre class="brush: css">{{csssyntax}}</pre> + +<h2 id="Examples">实例</h2> + +<p>为 <code>--my-color</code> {{cssxref('--*', '自定义属性')}}添加颜色值类型检测、设置默认值并且设置属性值不允许被继承。</p> + +<p>使用 <a href="/en-US/docs/Web/CSS">CSS</a> {{cssxref('@property')}} <a href="/en-US/docs/Web/CSS/At-rule">规则</a>:</p> + +<pre class="brush: css">@property --my-color { + syntax: '<color>'; + inherits: false; + initial-value: #c0ffee; +} +</pre> + +<p>使用 <a href="/en-US/docs/Web/JavaScript">JavaScript中的</a> {{domxref('CSS.registerProperty')}}函数:</p> + +<pre class="brush: js">window.CSS.registerProperty({ + name: '--my-color', + syntax: '<color>', + inherits: false, + initialValue: '#c0ffee', +}); +</pre> + +<h2 id="Formal_syntax">标准语法</h2> + +<pre class="brush: css">{{csssyntax}}</pre> + +<h2 id="Specifications">规范</h2> + +<table class="standard-table"> + <tbody> + <tr> + <th scope="col">规范</th> + <th scope="col">状态</th> + <th scope="col">提案</th> + </tr> + <tr> + <td>{{SpecName('CSS Properties and 值 API', '#at-property-rule')}}</td> + <td>{{Spec2('CSS Properties and 值 API')}}</td> + <td>初始定义.</td> + </tr> + </tbody> +</table> + +<h2 id="Browser_compatibility">浏览器兼容性</h2> + +<div class="hidden">The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> and send us a pull request.</div> + +<p>{{Compat("css.at-rules.property")}}</p> + +<h2 id="See_also">另见</h2> + +<ul> + <li><a href="/zh-CN/docs/Web/API/CSS_Properties_and_值_API">CSS属性与值 API</a></li> + <li><a href="/zh-CN/docs/Web/API/CSS_Painting_API">CSS 绘图 API</a></li> + <li><a href="/zh-CN/docs/Web/API/CSS_Typed_OM_API">CSS 类型对象模型</a></li> + <li><a href="/zh-CN/docs/Web/Houdini">CSS Houdini</a></li> +</ul> diff --git a/files/zh-cn/web/css/@supports/index.html b/files/zh-cn/web/css/@supports/index.html index 8d6343dd55..5efb6460be 100644 --- a/files/zh-cn/web/css/@supports/index.html +++ b/files/zh-cn/web/css/@supports/index.html @@ -95,7 +95,7 @@ translation_of: Web/CSS/@supports <h3 id="形式化语法">形式化语法</h3> -<pre class="syntaxbox notranslate">{{CSSSyntax}}</pre> +{{CSSSyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/@viewport/index.html b/files/zh-cn/web/css/@viewport/index.html index b1b7b23175..e84d3dbd05 100644 --- a/files/zh-cn/web/css/@viewport/index.html +++ b/files/zh-cn/web/css/@viewport/index.html @@ -63,7 +63,7 @@ translation_of: Web/CSS/@viewport <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Examples">Examples</h2> diff --git a/files/zh-cn/web/css/_colon_-moz-only-whitespace/index.html b/files/zh-cn/web/css/_colon_-moz-only-whitespace/index.html index 608db40847..f6afcf9720 100644 --- a/files/zh-cn/web/css/_colon_-moz-only-whitespace/index.html +++ b/files/zh-cn/web/css/_colon_-moz-only-whitespace/index.html @@ -15,7 +15,7 @@ translation_of: 'Web/CSS/:-moz-only-whitespace' <h2 id="语法">语法</h2> -<pre class="syntaxbox">{{CSSSyntax}}</pre> +{{CSSSyntax}} <h2 id="样例">样例</h2> diff --git a/files/zh-cn/web/css/_colon_active/index.html b/files/zh-cn/web/css/_colon_active/index.html index 1d09b7d141..192dfc1fa4 100644 --- a/files/zh-cn/web/css/_colon_active/index.html +++ b/files/zh-cn/web/css/_colon_active/index.html @@ -27,7 +27,7 @@ a:active { <h2 id="语法">语法</h2> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/_colon_any-link/index.html b/files/zh-cn/web/css/_colon_any-link/index.html index 58a8a126cf..0f06f7cec4 100644 --- a/files/zh-cn/web/css/_colon_any-link/index.html +++ b/files/zh-cn/web/css/_colon_any-link/index.html @@ -18,7 +18,7 @@ translation_of: 'Web/CSS/:any-link' <h2 id="语法">语法</h2> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Example" name="Example">示例</h2> diff --git a/files/zh-cn/web/css/_colon_blank/index.html b/files/zh-cn/web/css/_colon_blank/index.html index ee0cfeceee..35852f21be 100644 --- a/files/zh-cn/web/css/_colon_blank/index.html +++ b/files/zh-cn/web/css/_colon_blank/index.html @@ -20,7 +20,7 @@ original_slug: Web/CSS/:blank空白伪类 <h2 id="语法">语法</h2> -<pre class="syntaxbox">{{CSSSyntax}}</pre> +{{CSSSyntax}} <h2 id="规范">规范</h2> diff --git a/files/zh-cn/web/css/_colon_checked/index.html b/files/zh-cn/web/css/_colon_checked/index.html index 85b7dbe44c..efe9120f21 100644 --- a/files/zh-cn/web/css/_colon_checked/index.html +++ b/files/zh-cn/web/css/_colon_checked/index.html @@ -21,7 +21,7 @@ translation_of: 'Web/CSS/:checked' <h2 id="语法">语法</h2> -<pre>{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Examples" name="Examples">示例</h2> diff --git a/files/zh-cn/web/css/_colon_default/index.html b/files/zh-cn/web/css/_colon_default/index.html index e7a3c59512..fc03ea200e 100644 --- a/files/zh-cn/web/css/_colon_default/index.html +++ b/files/zh-cn/web/css/_colon_default/index.html @@ -18,7 +18,7 @@ translation_of: 'Web/CSS/:default' <h2 id="语法">语法</h2> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/_colon_defined/index.html b/files/zh-cn/web/css/_colon_defined/index.html index 74c0e616c1..70a99e7797 100644 --- a/files/zh-cn/web/css/_colon_defined/index.html +++ b/files/zh-cn/web/css/_colon_defined/index.html @@ -20,7 +20,7 @@ simple-custom:defined { <h2 id="语法">语法</h2> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/_colon_disabled/index.html b/files/zh-cn/web/css/_colon_disabled/index.html index 75fdcefd03..abdf4e68f1 100644 --- a/files/zh-cn/web/css/_colon_disabled/index.html +++ b/files/zh-cn/web/css/_colon_disabled/index.html @@ -18,7 +18,7 @@ input:disabled { <h2 id="语法">语法</h2> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/_colon_empty/index.html b/files/zh-cn/web/css/_colon_empty/index.html index a51ec68257..cc4266e4db 100644 --- a/files/zh-cn/web/css/_colon_empty/index.html +++ b/files/zh-cn/web/css/_colon_empty/index.html @@ -25,8 +25,7 @@ div:empty { <h2 id="Syntax" name="Syntax">语法</h2> -<pre class="syntaxbox">{{csssyntax}} -</pre> +{{csssyntax}} <h2 id="Examples" name="Examples">例子</h2> diff --git a/files/zh-cn/web/css/_colon_enabled/index.html b/files/zh-cn/web/css/_colon_enabled/index.html index ac57afafaf..f8ae1fc628 100644 --- a/files/zh-cn/web/css/_colon_enabled/index.html +++ b/files/zh-cn/web/css/_colon_enabled/index.html @@ -21,7 +21,7 @@ input:enabled { <h2 id="语法">语法</h2> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/_colon_first-child/index.html b/files/zh-cn/web/css/_colon_first-child/index.html index 2ff9f8e726..5b3e21f58b 100644 --- a/files/zh-cn/web/css/_colon_first-child/index.html +++ b/files/zh-cn/web/css/_colon_first-child/index.html @@ -19,8 +19,7 @@ p:first-child { <h2 id="语法">语法</h2> -<pre class="syntaxbox">{{csssyntax}} -</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/_colon_first-of-type/index.html b/files/zh-cn/web/css/_colon_first-of-type/index.html index 50941a5a12..c918b682c1 100644 --- a/files/zh-cn/web/css/_colon_first-of-type/index.html +++ b/files/zh-cn/web/css/_colon_first-of-type/index.html @@ -24,7 +24,7 @@ p:first-of-type { <h2 id="Syntax" name="Syntax">语法</h2> -<pre>{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Example" name="Example">例子</h2> diff --git a/files/zh-cn/web/css/_colon_first/index.html b/files/zh-cn/web/css/_colon_first/index.html index ed6b1af264..41d7bc3d37 100644 --- a/files/zh-cn/web/css/_colon_first/index.html +++ b/files/zh-cn/web/css/_colon_first/index.html @@ -13,7 +13,7 @@ translation_of: 'Web/CSS/:first' <h2 id="语法">语法</h2> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Example" name="Example">示例</h2> diff --git a/files/zh-cn/web/css/_colon_focus-visible/index.html b/files/zh-cn/web/css/_colon_focus-visible/index.html index ef432792ea..d4b40499e5 100644 --- a/files/zh-cn/web/css/_colon_focus-visible/index.html +++ b/files/zh-cn/web/css/_colon_focus-visible/index.html @@ -19,7 +19,7 @@ translation_of: 'Web/CSS/:focus-visible' <h2 id="语法">语法</h2> -<pre>{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/_colon_focus-within/index.html b/files/zh-cn/web/css/_colon_focus-within/index.html index e638f478b5..2efe251bb8 100644 --- a/files/zh-cn/web/css/_colon_focus-within/index.html +++ b/files/zh-cn/web/css/_colon_focus-within/index.html @@ -24,7 +24,7 @@ div:focus-within { <h2 id="语法">语法</h2> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Example">Example</h2> diff --git a/files/zh-cn/web/css/_colon_focus/index.html b/files/zh-cn/web/css/_colon_focus/index.html index fe3ae14c56..b35aa2b79a 100644 --- a/files/zh-cn/web/css/_colon_focus/index.html +++ b/files/zh-cn/web/css/_colon_focus/index.html @@ -24,7 +24,7 @@ input:focus { <h2 id="语法">语法</h2> -<pre>{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Example">Example</h2> diff --git a/files/zh-cn/web/css/_colon_fullscreen/index.html b/files/zh-cn/web/css/_colon_fullscreen/index.html index fb793fa109..8fcd34273b 100644 --- a/files/zh-cn/web/css/_colon_fullscreen/index.html +++ b/files/zh-cn/web/css/_colon_fullscreen/index.html @@ -19,7 +19,7 @@ translation_of: 'Web/CSS/:fullscreen' <h2 id="语法">语法</h2> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/css/_colon_has/index.html b/files/zh-cn/web/css/_colon_has/index.html index ad784814b6..03bbc3a801 100644 --- a/files/zh-cn/web/css/_colon_has/index.html +++ b/files/zh-cn/web/css/_colon_has/index.html @@ -21,7 +21,7 @@ var test = document.querySelector('a:has(> img)');</code></pre> <h2 id="Syntax" name="Syntax">语法</h2> -<pre class="syntaxbox">{{CSSSyntax}}</pre> +{{CSSSyntax}} <h2 id="Examples" name="Examples">示例</h2> diff --git a/files/zh-cn/web/css/_colon_host()/index.html b/files/zh-cn/web/css/_colon_host()/index.html index 7542ac2c81..5b67042ed0 100644 --- a/files/zh-cn/web/css/_colon_host()/index.html +++ b/files/zh-cn/web/css/_colon_host()/index.html @@ -27,7 +27,7 @@ translation_of: 'Web/CSS/:host()' <h2 id="句法"><font><font>句法</font></font></h2> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/css/_colon_host-context()/index.html b/files/zh-cn/web/css/_colon_host-context()/index.html index 69168913ff..c479a1e008 100644 --- a/files/zh-cn/web/css/_colon_host-context()/index.html +++ b/files/zh-cn/web/css/_colon_host-context()/index.html @@ -29,7 +29,7 @@ translation_of: 'Web/CSS/:host-context()' <h2 id="Syntax">Syntax</h2> -<pre class="syntaxbox">{{CSSSyntax}}</pre> +{{CSSSyntax}} <h2 id="Examples">Examples</h2> diff --git a/files/zh-cn/web/css/_colon_host/index.html b/files/zh-cn/web/css/_colon_host/index.html index a4e3da4c7c..ca44bdbc35 100644 --- a/files/zh-cn/web/css/_colon_host/index.html +++ b/files/zh-cn/web/css/_colon_host/index.html @@ -23,7 +23,7 @@ translation_of: 'Web/CSS/:host' <h2 id="语法">语法</h2> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/_colon_hover/index.html b/files/zh-cn/web/css/_colon_hover/index.html index 3b54d58f4e..a8fa4e40c1 100644 --- a/files/zh-cn/web/css/_colon_hover/index.html +++ b/files/zh-cn/web/css/_colon_hover/index.html @@ -20,7 +20,7 @@ translation_of: 'Web/CSS/:hover' <h2 id="语法">语法</h2> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/_colon_in-range/index.html b/files/zh-cn/web/css/_colon_in-range/index.html index 81437a911f..45bb8e4887 100644 --- a/files/zh-cn/web/css/_colon_in-range/index.html +++ b/files/zh-cn/web/css/_colon_in-range/index.html @@ -18,7 +18,7 @@ input:in-range { <h2 id="语法">语法</h2> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Example" name="Example">示例</h2> diff --git a/files/zh-cn/web/css/_colon_indeterminate/index.html b/files/zh-cn/web/css/_colon_indeterminate/index.html index 79151b26ec..e51b565fb9 100644 --- a/files/zh-cn/web/css/_colon_indeterminate/index.html +++ b/files/zh-cn/web/css/_colon_indeterminate/index.html @@ -25,7 +25,7 @@ input:indeterminate { <h2 id="语法">语法</h2> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/_colon_is/index.html b/files/zh-cn/web/css/_colon_is/index.html index 494785a89a..2f0a3d04de 100644 --- a/files/zh-cn/web/css/_colon_is/index.html +++ b/files/zh-cn/web/css/_colon_is/index.html @@ -56,7 +56,7 @@ footer p:hover { <h2 id="语法">语法</h2> -<pre class="syntaxbox">{{CSSSyntax}}</pre> +{{CSSSyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/_colon_last-child/index.html b/files/zh-cn/web/css/_colon_last-child/index.html index e4720413c3..2af0b690d8 100644 --- a/files/zh-cn/web/css/_colon_last-child/index.html +++ b/files/zh-cn/web/css/_colon_last-child/index.html @@ -11,7 +11,7 @@ translation_of: 'Web/CSS/:last-child' <h2 id="语法">语法</h2> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/_colon_left/index.html b/files/zh-cn/web/css/_colon_left/index.html index 12f951a000..730e44de9c 100644 --- a/files/zh-cn/web/css/_colon_left/index.html +++ b/files/zh-cn/web/css/_colon_left/index.html @@ -24,7 +24,7 @@ translation_of: 'Web/CSS/:left' <h2 id="参数">参数</h2> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="样例">样例</h2> diff --git a/files/zh-cn/web/css/_colon_not/index.html b/files/zh-cn/web/css/_colon_not/index.html index e22026a5af..d8ce75ed51 100644 --- a/files/zh-cn/web/css/_colon_not/index.html +++ b/files/zh-cn/web/css/_colon_not/index.html @@ -38,7 +38,7 @@ translation_of: 'Web/CSS/:not' <p>以逗号分隔的选择器列表作为参数是实验性的,尚未获得广泛支持。</p> </div> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/_colon_nth-child/index.html b/files/zh-cn/web/css/_colon_nth-child/index.html index 9cb7fddd6f..55d5fff80c 100644 --- a/files/zh-cn/web/css/_colon_nth-child/index.html +++ b/files/zh-cn/web/css/_colon_nth-child/index.html @@ -25,8 +25,7 @@ translation_of: 'Web/CSS/:nth-child' <h2 id="Syntax" name="Syntax">语法</h2> -<pre class="syntaxbox">{{csssyntax}} -</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/_colon_nth-last-child/index.html b/files/zh-cn/web/css/_colon_nth-last-child/index.html index baeb70ba57..226fb195a8 100644 --- a/files/zh-cn/web/css/_colon_nth-last-child/index.html +++ b/files/zh-cn/web/css/_colon_nth-last-child/index.html @@ -43,8 +43,7 @@ translation_of: 'Web/CSS/:nth-last-child' <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}} -</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/_colon_nth-last-of-type/index.html b/files/zh-cn/web/css/_colon_nth-last-of-type/index.html index c388564504..8e9dda119f 100644 --- a/files/zh-cn/web/css/_colon_nth-last-of-type/index.html +++ b/files/zh-cn/web/css/_colon_nth-last-of-type/index.html @@ -16,8 +16,7 @@ translation_of: 'Web/CSS/:nth-last-of-type' <h2 id="语法">语法</h2> -<pre class="syntaxbox">{{csssyntax}} -</pre> +{{csssyntax}} <h2 id="Example">Example</h2> diff --git a/files/zh-cn/web/css/_colon_nth-of-type/index.html b/files/zh-cn/web/css/_colon_nth-of-type/index.html index 741261dcf9..2cc578dc0d 100644 --- a/files/zh-cn/web/css/_colon_nth-of-type/index.html +++ b/files/zh-cn/web/css/_colon_nth-of-type/index.html @@ -26,8 +26,7 @@ p:nth-of-type(4n) { <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}} -</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/_colon_only-child/index.html b/files/zh-cn/web/css/_colon_only-child/index.html index 1c8ba8f8dc..c0aa0440a3 100644 --- a/files/zh-cn/web/css/_colon_only-child/index.html +++ b/files/zh-cn/web/css/_colon_only-child/index.html @@ -27,8 +27,7 @@ p:only-child { <h2 id="语法">语法</h2> -<pre class="syntaxbox">{{csssyntax}} -</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/_colon_optional/index.html b/files/zh-cn/web/css/_colon_optional/index.html index 601a0336da..627a0f697c 100644 --- a/files/zh-cn/web/css/_colon_optional/index.html +++ b/files/zh-cn/web/css/_colon_optional/index.html @@ -23,7 +23,7 @@ input:optional { <h2 id="语法">语法</h2> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/css/_colon_out-of-range/index.html b/files/zh-cn/web/css/_colon_out-of-range/index.html index 1223744f41..490129d0f1 100644 --- a/files/zh-cn/web/css/_colon_out-of-range/index.html +++ b/files/zh-cn/web/css/_colon_out-of-range/index.html @@ -20,7 +20,7 @@ input:out-of-range { <h2 id="语法">语法</h2> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Example" name="Example">示例</h2> diff --git a/files/zh-cn/web/css/_colon_read-only/index.html b/files/zh-cn/web/css/_colon_read-only/index.html index 02f90acee8..b253e7aeab 100644 --- a/files/zh-cn/web/css/_colon_read-only/index.html +++ b/files/zh-cn/web/css/_colon_read-only/index.html @@ -27,7 +27,7 @@ input:read-only { <h2 id="语法">语法</h2> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Example" name="Example">示例</h2> diff --git a/files/zh-cn/web/css/_colon_read-write/index.html b/files/zh-cn/web/css/_colon_read-write/index.html index 23735a5573..1a84810f89 100644 --- a/files/zh-cn/web/css/_colon_read-write/index.html +++ b/files/zh-cn/web/css/_colon_read-write/index.html @@ -24,7 +24,7 @@ input:read-write { <h2 id="语法">语法</h2> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Example" name="Example">示例</h2> diff --git a/files/zh-cn/web/css/_colon_required/index.html b/files/zh-cn/web/css/_colon_required/index.html index 95089e4e03..c051cf0b14 100644 --- a/files/zh-cn/web/css/_colon_required/index.html +++ b/files/zh-cn/web/css/_colon_required/index.html @@ -13,7 +13,7 @@ translation_of: 'Web/CSS/:required' <h2 id="语法">语法</h2> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/css/_colon_root/index.html b/files/zh-cn/web/css/_colon_root/index.html index 9ea8106eb1..130f2e16a6 100644 --- a/files/zh-cn/web/css/_colon_root/index.html +++ b/files/zh-cn/web/css/_colon_root/index.html @@ -14,7 +14,7 @@ translation_of: 'Web/CSS/:root' <h2 id="语法">语法</h2> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/_colon_scope/index.html b/files/zh-cn/web/css/_colon_scope/index.html index 5d5f6e74c7..0eb40990b3 100644 --- a/files/zh-cn/web/css/_colon_scope/index.html +++ b/files/zh-cn/web/css/_colon_scope/index.html @@ -24,7 +24,7 @@ translation_of: 'Web/CSS/:scope' <h2 id="用法">用法</h2> -<pre class="syntaxbox language-html">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/_colon_target/index.html b/files/zh-cn/web/css/_colon_target/index.html index 337b0b42b6..dfe660b347 100644 --- a/files/zh-cn/web/css/_colon_target/index.html +++ b/files/zh-cn/web/css/_colon_target/index.html @@ -25,7 +25,7 @@ translation_of: 'Web/CSS/:target' <h2 id="语法">语法</h2> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/_colon_valid/index.html b/files/zh-cn/web/css/_colon_valid/index.html index 43689bc25b..14eac092a6 100644 --- a/files/zh-cn/web/css/_colon_valid/index.html +++ b/files/zh-cn/web/css/_colon_valid/index.html @@ -22,7 +22,7 @@ input:valid { <h2 id="语法">语法</h2> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/css/_colon_where/index.html b/files/zh-cn/web/css/_colon_where/index.html index 207deb2f6f..62d4ce9f75 100644 --- a/files/zh-cn/web/css/_colon_where/index.html +++ b/files/zh-cn/web/css/_colon_where/index.html @@ -17,7 +17,7 @@ translation_of: 'Web/CSS/:where' <h2 id="语法">语法</h2> -<pre class="syntaxbox">{{CSSSyntax}}</pre> +{{CSSSyntax}} <h2 id="规范">规范</h2> diff --git a/files/zh-cn/web/css/_doublecolon_-moz-progress-bar/index.html b/files/zh-cn/web/css/_doublecolon_-moz-progress-bar/index.html index 8388422fe2..0af0760b04 100644 --- a/files/zh-cn/web/css/_doublecolon_-moz-progress-bar/index.html +++ b/files/zh-cn/web/css/_doublecolon_-moz-progress-bar/index.html @@ -15,7 +15,7 @@ translation_of: 'Web/CSS/::-moz-progress-bar' <h2 id="语法">语法</h2> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/css/_doublecolon_-moz-range-progress/index.html b/files/zh-cn/web/css/_doublecolon_-moz-range-progress/index.html index a832614259..8d2d399a08 100644 --- a/files/zh-cn/web/css/_doublecolon_-moz-range-progress/index.html +++ b/files/zh-cn/web/css/_doublecolon_-moz-range-progress/index.html @@ -19,7 +19,7 @@ translation_of: 'Web/CSS/::-moz-range-progress' <h2 id="语法">语法</h2> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/_doublecolon_backdrop/index.html b/files/zh-cn/web/css/_doublecolon_backdrop/index.html index cf90e84938..aca4ca417c 100644 --- a/files/zh-cn/web/css/_doublecolon_backdrop/index.html +++ b/files/zh-cn/web/css/_doublecolon_backdrop/index.html @@ -23,7 +23,7 @@ dialog::backdrop { <h2 id="语法">语法</h2> -<pre class="syntaxbox">{{CSSSyntax}}</pre> +{{CSSSyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/_doublecolon_first-line/index.html b/files/zh-cn/web/css/_doublecolon_first-line/index.html index efd48c6a39..af932f21df 100644 --- a/files/zh-cn/web/css/_doublecolon_first-line/index.html +++ b/files/zh-cn/web/css/_doublecolon_first-line/index.html @@ -39,7 +39,7 @@ translation_of: 'Web/CSS/::first-line' <h2 id="语法">语法</h2> -<pre>{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/_doublecolon_marker/index.html b/files/zh-cn/web/css/_doublecolon_marker/index.html index 047033e75f..124588bd61 100644 --- a/files/zh-cn/web/css/_doublecolon_marker/index.html +++ b/files/zh-cn/web/css/_doublecolon_marker/index.html @@ -29,7 +29,7 @@ translation_of: 'Web/CSS/::marker' <h2 id="语法">语法</h2> -<pre class="syntaxbox notranslate">{{CSSSyntax}}</pre> +{{CSSSyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/_doublecolon_part/index.html b/files/zh-cn/web/css/_doublecolon_part/index.html index 6c2bbd1faa..3d0d3134bc 100644 --- a/files/zh-cn/web/css/_doublecolon_part/index.html +++ b/files/zh-cn/web/css/_doublecolon_part/index.html @@ -24,7 +24,7 @@ translation_of: 'Web/CSS/::part' <h2 id="语法">语法</h2> -<pre class="syntaxbox notranslate">{{CSSSyntax}}</pre> +{{CSSSyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/_doublecolon_placeholder/index.html b/files/zh-cn/web/css/_doublecolon_placeholder/index.html index 959bd15c4c..227ae6f8a8 100644 --- a/files/zh-cn/web/css/_doublecolon_placeholder/index.html +++ b/files/zh-cn/web/css/_doublecolon_placeholder/index.html @@ -16,8 +16,7 @@ translation_of: 'Web/CSS/::placeholder' <h2 id="语法">语法</h2> -<pre class="brush: css">{{csssyntax}} -</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/_doublecolon_slotted/index.html b/files/zh-cn/web/css/_doublecolon_slotted/index.html index 4380de3dea..2d17824ef3 100644 --- a/files/zh-cn/web/css/_doublecolon_slotted/index.html +++ b/files/zh-cn/web/css/_doublecolon_slotted/index.html @@ -22,7 +22,7 @@ translation_of: 'Web/CSS/::slotted' <h2 id="语法">语法</h2> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="样例">样例</h2> diff --git a/files/zh-cn/web/css/align-content/index.html b/files/zh-cn/web/css/align-content/index.html index 90b3ecad1f..bb874de3a5 100644 --- a/files/zh-cn/web/css/align-content/index.html +++ b/files/zh-cn/web/css/align-content/index.html @@ -97,7 +97,7 @@ align-content: unset; /* 未设置 */ <h3 id="标准语法">标准语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/align-items/index.html b/files/zh-cn/web/css/align-items/index.html index c534cc0d2b..24b933c5bb 100644 --- a/files/zh-cn/web/css/align-items/index.html +++ b/files/zh-cn/web/css/align-items/index.html @@ -96,8 +96,7 @@ align-items: unset;</pre> </dt> </dl> -<pre class="syntaxbox notranslate">{{csssyntax}} -</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/align-self/index.html b/files/zh-cn/web/css/align-self/index.html index 757f5d48bc..df7fcf29c1 100644 --- a/files/zh-cn/web/css/align-self/index.html +++ b/files/zh-cn/web/css/align-self/index.html @@ -93,7 +93,7 @@ align-self: unset;</pre> <h3 id="形式化语法">形式化语法</h3> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/all/index.html b/files/zh-cn/web/css/all/index.html index dfb89ccb9e..cab8fa2aba 100644 --- a/files/zh-cn/web/css/all/index.html +++ b/files/zh-cn/web/css/all/index.html @@ -50,7 +50,7 @@ all: revert; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/animation-delay/index.html b/files/zh-cn/web/css/animation-delay/index.html index 979bfa800c..6059294b33 100644 --- a/files/zh-cn/web/css/animation-delay/index.html +++ b/files/zh-cn/web/css/animation-delay/index.html @@ -40,7 +40,7 @@ animation-delay: 2s, 4ms; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox" style="font-size: 14px; white-space: normal;">{{csssyntax("animation-delay")}}</pre> +{{csssyntax("animation-delay")}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/animation-fill-mode/index.html b/files/zh-cn/web/css/animation-fill-mode/index.html index 03a4fa5963..866563f148 100644 --- a/files/zh-cn/web/css/animation-fill-mode/index.html +++ b/files/zh-cn/web/css/animation-fill-mode/index.html @@ -112,8 +112,7 @@ animation-fill-mode: both, forwards, none; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}} -</pre> +{{csssyntax}} <h2 id="Example" name="Example">示例</h2> diff --git a/files/zh-cn/web/css/animation-iteration-count/index.html b/files/zh-cn/web/css/animation-iteration-count/index.html index 42a2218ed1..283caae60b 100644 --- a/files/zh-cn/web/css/animation-iteration-count/index.html +++ b/files/zh-cn/web/css/animation-iteration-count/index.html @@ -43,7 +43,7 @@ animation-iteration-count: 2, 0, infinite; <h3 id="Formal_syntax">Formal syntax </h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Examples_示例">Examples 示例</h2> diff --git a/files/zh-cn/web/css/animation-name/index.html b/files/zh-cn/web/css/animation-name/index.html index 5cf3c6c23c..6c479063dc 100644 --- a/files/zh-cn/web/css/animation-name/index.html +++ b/files/zh-cn/web/css/animation-name/index.html @@ -48,7 +48,7 @@ animation-name: unset</pre> <dt> <h3 id="Formal_syntax">Formal syntax</h3> - <pre class="twopartsyntaxbox">{{csssyntax("animation-name")}}</pre> + {{csssyntax("animation-name")}} </dt> </dl> diff --git a/files/zh-cn/web/css/animation-timing-function/index.html b/files/zh-cn/web/css/animation-timing-function/index.html index c4bc03f81c..b9fabe42ec 100644 --- a/files/zh-cn/web/css/animation-timing-function/index.html +++ b/files/zh-cn/web/css/animation-timing-function/index.html @@ -56,8 +56,7 @@ animation-timing-function: unset;</pre> <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax("animation-timing-function")}} -</pre> +{{csssyntax("animation-timing-function")}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/animation/index.html b/files/zh-cn/web/css/animation/index.html index d503f6b8f4..e825fabd9a 100644 --- a/files/zh-cn/web/css/animation/index.html +++ b/files/zh-cn/web/css/animation/index.html @@ -243,8 +243,7 @@ button.restart { <h3 id="语法_2">语法</h3> -<pre class="syntaxbox">{{csssyntax("animation")}} -</pre> +{{csssyntax("animation")}} <h2 id="范例">范例</h2> diff --git a/files/zh-cn/web/css/appearance/index.html b/files/zh-cn/web/css/appearance/index.html index bcc7adce7a..678101c0f1 100644 --- a/files/zh-cn/web/css/appearance/index.html +++ b/files/zh-cn/web/css/appearance/index.html @@ -1834,7 +1834,7 @@ translation_of: Web/CSS/appearance <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/aspect-ratio/index.html b/files/zh-cn/web/css/aspect-ratio/index.html index c2db6c0b03..94efcdf1b0 100644 --- a/files/zh-cn/web/css/aspect-ratio/index.html +++ b/files/zh-cn/web/css/aspect-ratio/index.html @@ -30,7 +30,7 @@ aspect-ratio: unset; <h2 id="正式语法">正式语法</h2> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/backdrop-filter/index.html b/files/zh-cn/web/css/backdrop-filter/index.html index 934030ed9b..a05c5b833b 100644 --- a/files/zh-cn/web/css/backdrop-filter/index.html +++ b/files/zh-cn/web/css/backdrop-filter/index.html @@ -58,7 +58,7 @@ backdrop-filter: unset; <h3 id="形式化语法">形式化语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/backface-visibility/index.html b/files/zh-cn/web/css/backface-visibility/index.html index 2fb06a1dda..5888ce3b5a 100644 --- a/files/zh-cn/web/css/backface-visibility/index.html +++ b/files/zh-cn/web/css/backface-visibility/index.html @@ -37,7 +37,7 @@ backface-visibility: unset;</pre> <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="举例">举例</h2> diff --git a/files/zh-cn/web/css/background-attachment/index.html b/files/zh-cn/web/css/background-attachment/index.html index 4247605e0c..12d9acb79e 100644 --- a/files/zh-cn/web/css/background-attachment/index.html +++ b/files/zh-cn/web/css/background-attachment/index.html @@ -42,7 +42,7 @@ translation_of: Web/CSS/background-attachment </dt> </dl> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/css/background-clip/index.html b/files/zh-cn/web/css/background-clip/index.html index 5f5f6cb3bb..32b8a2868a 100644 --- a/files/zh-cn/web/css/background-clip/index.html +++ b/files/zh-cn/web/css/background-clip/index.html @@ -48,7 +48,7 @@ background-clip: unset; <h3 id="标准语法">标准语法</h3> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/background-color/index.html b/files/zh-cn/web/css/background-color/index.html index 85e0ff100f..297cd25feb 100644 --- a/files/zh-cn/web/css/background-color/index.html +++ b/files/zh-cn/web/css/background-color/index.html @@ -53,7 +53,7 @@ background-color: unset; <h3 id="正式语法" style="font-size: 1.71428571428571rem;">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/background-image/index.html b/files/zh-cn/web/css/background-image/index.html index cf4b302680..07d2fe949a 100644 --- a/files/zh-cn/web/css/background-image/index.html +++ b/files/zh-cn/web/css/background-image/index.html @@ -45,7 +45,7 @@ translation_of: Web/CSS/background-image <h3 id="正规语法">正规语法</h3> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Examples" name="Examples">示例</h2> diff --git a/files/zh-cn/web/css/background-origin/index.html b/files/zh-cn/web/css/background-origin/index.html index 3109f95def..f9db364d8d 100644 --- a/files/zh-cn/web/css/background-origin/index.html +++ b/files/zh-cn/web/css/background-origin/index.html @@ -39,7 +39,7 @@ background-origin: inherit <h3 id="形式化语法" style="font-size: 1.71428571428571rem;">形式化语法</h3> <a class="syntaxbox-help icon-only" href="https://developer.mozilla.org/docs/Web/CSS/Value_definition_syntax" lang="en">How to read CSS syntax.</a> - <pre class="syntaxbox" style="font-size: 14px; white-space: normal;">{{csssyntax("background-origin")}}</pre> + {{csssyntax("background-origin")}} </dt> </dl> diff --git a/files/zh-cn/web/css/background-position-x/index.html b/files/zh-cn/web/css/background-position-x/index.html index 37a9017574..64aad74b28 100644 --- a/files/zh-cn/web/css/background-position-x/index.html +++ b/files/zh-cn/web/css/background-position-x/index.html @@ -62,7 +62,7 @@ background-position-x: unset; <h3 id="正规语法">正规语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Specifications" name="Specifications">说明</h2> diff --git a/files/zh-cn/web/css/background-position-y/index.html b/files/zh-cn/web/css/background-position-y/index.html index a596d59547..d3b67e9d13 100644 --- a/files/zh-cn/web/css/background-position-y/index.html +++ b/files/zh-cn/web/css/background-position-y/index.html @@ -62,7 +62,7 @@ background-position-y: unset; <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Specifications" name="Specifications">规范</h2> diff --git a/files/zh-cn/web/css/background-position/index.html b/files/zh-cn/web/css/background-position/index.html index dedc99e365..4ba10d7a58 100644 --- a/files/zh-cn/web/css/background-position/index.html +++ b/files/zh-cn/web/css/background-position/index.html @@ -120,7 +120,7 @@ background-position: unset; <h3 id="语法规范">语法规范</h3> -<pre>{{csssyntax}}</pre> +{{csssyntax}} <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/css/background-repeat/index.html b/files/zh-cn/web/css/background-repeat/index.html index 0f8a1d6291..9a6ebf8b23 100644 --- a/files/zh-cn/web/css/background-repeat/index.html +++ b/files/zh-cn/web/css/background-repeat/index.html @@ -111,8 +111,7 @@ background-repeat: inherit;</code></pre> <h3 id="标准语法">标准语法</h3> -<pre class="syntaxbox">{{csssyntax}} -</pre> +{{csssyntax}} <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/css/background-size/index.html b/files/zh-cn/web/css/background-size/index.html index 1b2db84c26..4fd689d375 100644 --- a/files/zh-cn/web/css/background-size/index.html +++ b/files/zh-cn/web/css/background-size/index.html @@ -184,7 +184,7 @@ background-size: 50% 25%;</code></pre> <p><a href="https://developer.mozilla.org/docs/Web/CSS/Value_definition_syntax" lang="en">如何阅读 CSS 语法。</a></p> -<pre class="notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="案例">案例</h2> diff --git a/files/zh-cn/web/css/background/index.html b/files/zh-cn/web/css/background/index.html index a260ec29ae..4b40f1a8c6 100644 --- a/files/zh-cn/web/css/background/index.html +++ b/files/zh-cn/web/css/background/index.html @@ -79,7 +79,7 @@ background: no-repeat center/80% url("../img/image.png"); <h3 id="标准语法">标准语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/block-size/index.html b/files/zh-cn/web/css/block-size/index.html index d6809a5364..c0b755d598 100644 --- a/files/zh-cn/web/css/block-size/index.html +++ b/files/zh-cn/web/css/block-size/index.html @@ -47,7 +47,7 @@ block-size: unset;If the writing mode is vertically oriented, the value of <code <h3 id="正式语句">正式语句</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/css/border-block-end/index.html b/files/zh-cn/web/css/border-block-end/index.html index 4c152ed08b..62c059fd21 100644 --- a/files/zh-cn/web/css/border-block-end/index.html +++ b/files/zh-cn/web/css/border-block-end/index.html @@ -39,7 +39,7 @@ border-block-end: medium dashed blue; <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Example">Example</h2> diff --git a/files/zh-cn/web/css/border-block/index.html b/files/zh-cn/web/css/border-block/index.html index 5552b1818b..0798d31f70 100644 --- a/files/zh-cn/web/css/border-block/index.html +++ b/files/zh-cn/web/css/border-block/index.html @@ -47,7 +47,7 @@ border-block: medium dashed blue; <h2 id="Formal_syntax">Formal syntax</h2> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Examples">Examples</h2> diff --git a/files/zh-cn/web/css/border-bottom-color/index.html b/files/zh-cn/web/css/border-bottom-color/index.html index 1c75b4caf0..315bb30c54 100644 --- a/files/zh-cn/web/css/border-bottom-color/index.html +++ b/files/zh-cn/web/css/border-bottom-color/index.html @@ -28,7 +28,7 @@ border-bottom-color: #F5F6F7; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/border-bottom-left-radius/index.html b/files/zh-cn/web/css/border-bottom-left-radius/index.html index 38df1781cc..bc59f965fb 100644 --- a/files/zh-cn/web/css/border-bottom-left-radius/index.html +++ b/files/zh-cn/web/css/border-bottom-left-radius/index.html @@ -54,7 +54,7 @@ border-bottom-left-radius: inherit; <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Examples">Examples</h2> diff --git a/files/zh-cn/web/css/border-bottom-right-radius/index.html b/files/zh-cn/web/css/border-bottom-right-radius/index.html index 8c69521fce..4c21cf8996 100644 --- a/files/zh-cn/web/css/border-bottom-right-radius/index.html +++ b/files/zh-cn/web/css/border-bottom-right-radius/index.html @@ -56,7 +56,7 @@ border-bottom-right-radius: inherit;</pre> <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Examples">Examples</h2> diff --git a/files/zh-cn/web/css/border-bottom-style/index.html b/files/zh-cn/web/css/border-bottom-style/index.html index e477cdbd15..1a90f4455b 100644 --- a/files/zh-cn/web/css/border-bottom-style/index.html +++ b/files/zh-cn/web/css/border-bottom-style/index.html @@ -35,7 +35,7 @@ border-bottom-style: unset; <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Examples" name="Examples">Examples</h2> diff --git a/files/zh-cn/web/css/border-bottom-width/index.html b/files/zh-cn/web/css/border-bottom-width/index.html index 947697d847..01fb760c65 100644 --- a/files/zh-cn/web/css/border-bottom-width/index.html +++ b/files/zh-cn/web/css/border-bottom-width/index.html @@ -66,7 +66,7 @@ border-bottom-width: unset; <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Example">Example</h2> diff --git a/files/zh-cn/web/css/border-bottom/index.html b/files/zh-cn/web/css/border-bottom/index.html index 28ee04408a..24bc0d94af 100644 --- a/files/zh-cn/web/css/border-bottom/index.html +++ b/files/zh-cn/web/css/border-bottom/index.html @@ -50,7 +50,7 @@ border-bottom: medium dashed blue; <h3 id="形式化语法">形式化语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/border-collapse/index.html b/files/zh-cn/web/css/border-collapse/index.html index 1d2aa23732..0f251e2cf7 100644 --- a/files/zh-cn/web/css/border-collapse/index.html +++ b/files/zh-cn/web/css/border-collapse/index.html @@ -50,7 +50,7 @@ border-collapse: unset; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/border-color/index.html b/files/zh-cn/web/css/border-color/index.html index 7f3c982155..bb30c3161c 100644 --- a/files/zh-cn/web/css/border-color/index.html +++ b/files/zh-cn/web/css/border-color/index.html @@ -51,7 +51,7 @@ border-color: inherit <h3 id="语法定义">语法定义</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Complete_border-color_usage2">Complete_border-color_usage2</h2> diff --git a/files/zh-cn/web/css/border-image-slice/index.html b/files/zh-cn/web/css/border-image-slice/index.html index 2f7922d9e0..0894fa6805 100644 --- a/files/zh-cn/web/css/border-image-slice/index.html +++ b/files/zh-cn/web/css/border-image-slice/index.html @@ -74,7 +74,7 @@ border-image-slice: unset; <h3 id="形式语法">形式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="规范">规范</h2> diff --git a/files/zh-cn/web/css/border-image-source/index.html b/files/zh-cn/web/css/border-image-source/index.html index 0680fffca1..32b7b3bfa6 100644 --- a/files/zh-cn/web/css/border-image-source/index.html +++ b/files/zh-cn/web/css/border-image-source/index.html @@ -41,7 +41,7 @@ border-image-source: unset; <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Specifications" name="Specifications">Examples</h2> diff --git a/files/zh-cn/web/css/border-image-width/index.html b/files/zh-cn/web/css/border-image-width/index.html index 2af817da2b..50a0dfb0c1 100644 --- a/files/zh-cn/web/css/border-image-width/index.html +++ b/files/zh-cn/web/css/border-image-width/index.html @@ -74,7 +74,7 @@ border-image-width: unset; <h2 id="正式语法">正式语法</h2> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/border-image/index.html b/files/zh-cn/web/css/border-image/index.html index 079924c67d..15ab6f1254 100644 --- a/files/zh-cn/web/css/border-image/index.html +++ b/files/zh-cn/web/css/border-image/index.html @@ -30,7 +30,7 @@ border-image: url("/images/border.png") 30 30 stretch; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox" style="font-size: 14px; white-space: normal;">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/border-inline-color/index.html b/files/zh-cn/web/css/border-inline-color/index.html index d12ee53608..382e0ef41d 100644 --- a/files/zh-cn/web/css/border-inline-color/index.html +++ b/files/zh-cn/web/css/border-inline-color/index.html @@ -28,7 +28,7 @@ border-inline-color: #F5F6F7; <h2 id="Formal_syntax">Formal syntax</h2> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Examples">Examples</h2> diff --git a/files/zh-cn/web/css/border-left-color/index.html b/files/zh-cn/web/css/border-left-color/index.html index 5548cf4ecd..1f41f49f64 100644 --- a/files/zh-cn/web/css/border-left-color/index.html +++ b/files/zh-cn/web/css/border-left-color/index.html @@ -36,7 +36,7 @@ border-left-color: unset; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/css/border-left-style/index.html b/files/zh-cn/web/css/border-left-style/index.html index 74657ccfae..587303557e 100644 --- a/files/zh-cn/web/css/border-left-style/index.html +++ b/files/zh-cn/web/css/border-left-style/index.html @@ -39,7 +39,7 @@ border-left-style: unset; <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Examples" name="Examples">Examples</h2> diff --git a/files/zh-cn/web/css/border-left-width/index.html b/files/zh-cn/web/css/border-left-width/index.html index af8c580ccf..96dab4dcb9 100644 --- a/files/zh-cn/web/css/border-left-width/index.html +++ b/files/zh-cn/web/css/border-left-width/index.html @@ -71,7 +71,7 @@ border-left-width: unset;</pre> <h3 id="形式语法">形式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/css/border-left/index.html b/files/zh-cn/web/css/border-left/index.html index 6edada19f8..c0158bc725 100644 --- a/files/zh-cn/web/css/border-left/index.html +++ b/files/zh-cn/web/css/border-left/index.html @@ -53,7 +53,7 @@ border-left: none thick green; <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Example">Example</h2> diff --git a/files/zh-cn/web/css/border-radius/index.html b/files/zh-cn/web/css/border-radius/index.html index 8284b8d2f8..eb1e31d5a6 100644 --- a/files/zh-cn/web/css/border-radius/index.html +++ b/files/zh-cn/web/css/border-radius/index.html @@ -121,7 +121,7 @@ border-bottom-left-radius: 3px 4px; <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/border-right-color/index.html b/files/zh-cn/web/css/border-right-color/index.html index 07f5672955..d295cd26aa 100644 --- a/files/zh-cn/web/css/border-right-color/index.html +++ b/files/zh-cn/web/css/border-right-color/index.html @@ -38,7 +38,7 @@ border-right-color: unset; <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Examples">Examples</h2> diff --git a/files/zh-cn/web/css/border-right-style/index.html b/files/zh-cn/web/css/border-right-style/index.html index 3d5d50d242..13b659a5b0 100644 --- a/files/zh-cn/web/css/border-right-style/index.html +++ b/files/zh-cn/web/css/border-right-style/index.html @@ -37,7 +37,7 @@ border-right-style: unset; <h3 id="语法格式">语法格式</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Examples" name="Examples">示例</h2> diff --git a/files/zh-cn/web/css/border-right-width/index.html b/files/zh-cn/web/css/border-right-width/index.html index 1a36797efa..d02380e648 100644 --- a/files/zh-cn/web/css/border-right-width/index.html +++ b/files/zh-cn/web/css/border-right-width/index.html @@ -73,7 +73,7 @@ border-right-width: unset; <h3 id="形式语法">形式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/css/border-right/index.html b/files/zh-cn/web/css/border-right/index.html index 0bbf13c0c4..8a68acacc0 100644 --- a/files/zh-cn/web/css/border-right/index.html +++ b/files/zh-cn/web/css/border-right/index.html @@ -51,7 +51,7 @@ border-right: thick green; <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Example">Example</h2> diff --git a/files/zh-cn/web/css/border-spacing/index.html b/files/zh-cn/web/css/border-spacing/index.html index 23ed018357..b7ea9a871c 100644 --- a/files/zh-cn/web/css/border-spacing/index.html +++ b/files/zh-cn/web/css/border-spacing/index.html @@ -43,7 +43,7 @@ border-spacing: unset;</code></pre> <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/border-style/index.html b/files/zh-cn/web/css/border-style/index.html index af0b366697..55ebcfab9a 100644 --- a/files/zh-cn/web/css/border-style/index.html +++ b/files/zh-cn/web/css/border-style/index.html @@ -134,7 +134,7 @@ border-style: unset; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/border-top-color/index.html b/files/zh-cn/web/css/border-top-color/index.html index 8e605552db..71a1da0fca 100644 --- a/files/zh-cn/web/css/border-top-color/index.html +++ b/files/zh-cn/web/css/border-top-color/index.html @@ -42,7 +42,7 @@ border-top-color: unset; <h3 id="规范语法">规范语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/border-top-left-radius/index.html b/files/zh-cn/web/css/border-top-left-radius/index.html index 716b236743..c96767e330 100644 --- a/files/zh-cn/web/css/border-top-left-radius/index.html +++ b/files/zh-cn/web/css/border-top-left-radius/index.html @@ -55,7 +55,7 @@ border-top-left-radius: inherit; <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/border-top-style/index.html b/files/zh-cn/web/css/border-top-style/index.html index a664dca9ee..f49e5d7917 100644 --- a/files/zh-cn/web/css/border-top-style/index.html +++ b/files/zh-cn/web/css/border-top-style/index.html @@ -41,7 +41,7 @@ border-top-style: unset; <h3 id="形式化语法">形式化语法</h3> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Examples" name="Examples">示例</h2> diff --git a/files/zh-cn/web/css/border-top-width/index.html b/files/zh-cn/web/css/border-top-width/index.html index b8b80400d7..fcd74fcfd7 100644 --- a/files/zh-cn/web/css/border-top-width/index.html +++ b/files/zh-cn/web/css/border-top-width/index.html @@ -68,7 +68,7 @@ border-top-width: unset; <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Example">Example</h2> diff --git a/files/zh-cn/web/css/border-top/index.html b/files/zh-cn/web/css/border-top/index.html index 1555256744..1bfe5b6579 100644 --- a/files/zh-cn/web/css/border-top/index.html +++ b/files/zh-cn/web/css/border-top/index.html @@ -46,7 +46,7 @@ border-top: medium dashed green;</pre> <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/border-width/index.html b/files/zh-cn/web/css/border-width/index.html index 43ff5baa94..759654ee9e 100644 --- a/files/zh-cn/web/css/border-width/index.html +++ b/files/zh-cn/web/css/border-width/index.html @@ -42,7 +42,7 @@ border-width: thick; <h3 id="正式语法">正式语法</h3> -<pre>{{csssyntax}}</pre> +{{csssyntax}} <dl> <dt> diff --git a/files/zh-cn/web/css/bottom/index.html b/files/zh-cn/web/css/bottom/index.html index 46195d386c..bc3e80c61b 100644 --- a/files/zh-cn/web/css/bottom/index.html +++ b/files/zh-cn/web/css/bottom/index.html @@ -62,7 +62,7 @@ bottom: unset;</code></pre> <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Examples" name="Examples">示例</h2> diff --git a/files/zh-cn/web/css/box-decoration-break/index.html b/files/zh-cn/web/css/box-decoration-break/index.html index e35ab5dd82..5e7b1aefa5 100644 --- a/files/zh-cn/web/css/box-decoration-break/index.html +++ b/files/zh-cn/web/css/box-decoration-break/index.html @@ -48,7 +48,7 @@ box-decoration-break: unset; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/box-orient/index.html b/files/zh-cn/web/css/box-orient/index.html index 33f8d38a72..a32d0c5bb1 100644 --- a/files/zh-cn/web/css/box-orient/index.html +++ b/files/zh-cn/web/css/box-orient/index.html @@ -46,7 +46,7 @@ box-orient: unset; <h2 id="正式语法">正式语法</h2> -<pre class="syntaxbox notranslate">{{CSSSyntax}}</pre> +{{CSSSyntax}} <h2 id="Examples" name="Examples">示例</h2> diff --git a/files/zh-cn/web/css/box-shadow/index.html b/files/zh-cn/web/css/box-shadow/index.html index dadc4abfd0..d205d8a048 100644 --- a/files/zh-cn/web/css/box-shadow/index.html +++ b/files/zh-cn/web/css/box-shadow/index.html @@ -93,7 +93,7 @@ box-shadow: unset; <h3 id="正规文法">正规文法</h3> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <div class="hidden"> <p>此处应翻译为“正规文法”或“正则文法”。对此有兴趣的可以了解下 编译原理 的 “正规文法”</p> diff --git a/files/zh-cn/web/css/box-sizing/index.html b/files/zh-cn/web/css/box-sizing/index.html index 9c565dda73..db43c19ab3 100644 --- a/files/zh-cn/web/css/box-sizing/index.html +++ b/files/zh-cn/web/css/box-sizing/index.html @@ -68,8 +68,7 @@ translation_of: Web/CSS/box-sizing </dt> </dl> -<pre class="syntaxbox">{{csssyntax}} -</pre> +{{csssyntax}} <h2 id="Examples" name="Examples">示例</h2> diff --git a/files/zh-cn/web/css/break-after/index.html b/files/zh-cn/web/css/break-after/index.html index a338525d48..b9634631ed 100644 --- a/files/zh-cn/web/css/break-after/index.html +++ b/files/zh-cn/web/css/break-after/index.html @@ -108,7 +108,7 @@ break-after: unset; <h3 id="形式化语法">形式化语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Page_break_aliases">Page break aliases</h2> diff --git a/files/zh-cn/web/css/break-before/index.html b/files/zh-cn/web/css/break-before/index.html index e0c9ea142b..d69f122ae1 100644 --- a/files/zh-cn/web/css/break-before/index.html +++ b/files/zh-cn/web/css/break-before/index.html @@ -103,7 +103,7 @@ break-before: unset; <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Specifications">Specifications</h2> diff --git a/files/zh-cn/web/css/break-inside/index.html b/files/zh-cn/web/css/break-inside/index.html index de1065b17e..2fdcd47aad 100644 --- a/files/zh-cn/web/css/break-inside/index.html +++ b/files/zh-cn/web/css/break-inside/index.html @@ -46,7 +46,7 @@ break-inside: avoid-region; <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Specifications">Specifications</h2> diff --git a/files/zh-cn/web/css/calc()/index.html b/files/zh-cn/web/css/calc()/index.html index 41d9e7a537..767e67f0c7 100644 --- a/files/zh-cn/web/css/calc()/index.html +++ b/files/zh-cn/web/css/calc()/index.html @@ -47,7 +47,7 @@ width: calc(100% - 80px);</pre> <h3 id="形式化语法">形式化语法</h3> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/css/caret-color/index.html b/files/zh-cn/web/css/caret-color/index.html index 03f2e526b2..76a5c51b83 100644 --- a/files/zh-cn/web/css/caret-color/index.html +++ b/files/zh-cn/web/css/caret-color/index.html @@ -44,7 +44,7 @@ caret-color: hsla(228, 4%, 24%, 0.8); <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/clamp()/index.html b/files/zh-cn/web/css/clamp()/index.html index f55af592e9..4657d828b7 100644 --- a/files/zh-cn/web/css/clamp()/index.html +++ b/files/zh-cn/web/css/clamp()/index.html @@ -42,7 +42,7 @@ translation_of: Web/CSS/clamp() <h3 id="形式语法">形式语法</h3> -<pre class="syntaxbox notranslate">{{CSSSyntax}}</pre> +{{CSSSyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/clear/index.html b/files/zh-cn/web/css/clear/index.html index a38f07ec96..95511376e1 100644 --- a/files/zh-cn/web/css/clear/index.html +++ b/files/zh-cn/web/css/clear/index.html @@ -66,7 +66,7 @@ clear: unset;</code></pre> <dt> <h3 id="Formal_syntax">Formal syntax</h3> - <pre>{{csssyntax}}</pre> + {{csssyntax}} </dt> </dl> diff --git a/files/zh-cn/web/css/clip-path/index.html b/files/zh-cn/web/css/clip-path/index.html index 01f042c48b..c3283a9e35 100644 --- a/files/zh-cn/web/css/clip-path/index.html +++ b/files/zh-cn/web/css/clip-path/index.html @@ -91,7 +91,7 @@ clip-path: unset; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/css/color/index.html b/files/zh-cn/web/css/color/index.html index d39de39338..622c2294cf 100644 --- a/files/zh-cn/web/css/color/index.html +++ b/files/zh-cn/web/css/color/index.html @@ -89,7 +89,7 @@ color: unset;</pre> <h2 id="正规语法">正规语法</h2> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/column-gap/index.html b/files/zh-cn/web/css/column-gap/index.html index 14d8e10dbd..ae3f5866cc 100644 --- a/files/zh-cn/web/css/column-gap/index.html +++ b/files/zh-cn/web/css/column-gap/index.html @@ -52,7 +52,7 @@ column-gap: unset;</code></pre> <h3 id="正式语法">正式语法</h3> -<pre>{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/columns/index.html b/files/zh-cn/web/css/columns/index.html index ad3e0f8c41..a6420b7fba 100644 --- a/files/zh-cn/web/css/columns/index.html +++ b/files/zh-cn/web/css/columns/index.html @@ -45,7 +45,7 @@ columns: unset;</pre> <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/css/contain/index.html b/files/zh-cn/web/css/contain/index.html index d092cc764c..15cff4a881 100644 --- a/files/zh-cn/web/css/contain/index.html +++ b/files/zh-cn/web/css/contain/index.html @@ -88,7 +88,7 @@ contain: unset;</pre> <h2 id="形式化语法">形式化语法</h2> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/counter-increment/index.html b/files/zh-cn/web/css/counter-increment/index.html index 379db61b69..56907bf233 100644 --- a/files/zh-cn/web/css/counter-increment/index.html +++ b/files/zh-cn/web/css/counter-increment/index.html @@ -48,8 +48,7 @@ counter-increment: unset; <h3 id="语法形式">语法形式</h3> -<pre class="syntaxbox">{{csssyntax}} -</pre> +{{csssyntax}} <h2 id="Examples" name="Examples">示例</h2> diff --git a/files/zh-cn/web/css/counter-reset/index.html b/files/zh-cn/web/css/counter-reset/index.html index e670bedf30..13f975b110 100644 --- a/files/zh-cn/web/css/counter-reset/index.html +++ b/files/zh-cn/web/css/counter-reset/index.html @@ -61,7 +61,7 @@ counter-reset: unset; <h3 id="语法形式">语法形式</h3> -<pre>{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Examples" name="Examples">示例</h2> diff --git a/files/zh-cn/web/css/cursor/index.html b/files/zh-cn/web/css/cursor/index.html index e079ff86f8..815c5027f3 100644 --- a/files/zh-cn/web/css/cursor/index.html +++ b/files/zh-cn/web/css/cursor/index.html @@ -263,8 +263,7 @@ cursor: unset; <dl> <dt> - <pre class="syntaxbox notranslate">{{csssyntax("cursor")}} -</pre> + {{csssyntax("cursor")}} </dt> </dl> diff --git a/files/zh-cn/web/css/direction/index.html b/files/zh-cn/web/css/direction/index.html index 16c0371860..1d5e67154f 100644 --- a/files/zh-cn/web/css/direction/index.html +++ b/files/zh-cn/web/css/direction/index.html @@ -42,7 +42,7 @@ direction: unset; <h3 id="标准语法">标准语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/display-legacy/index.html b/files/zh-cn/web/css/display-legacy/index.html index 3912ff8fbf..2e228d9673 100644 --- a/files/zh-cn/web/css/display-legacy/index.html +++ b/files/zh-cn/web/css/display-legacy/index.html @@ -30,7 +30,7 @@ translation_of: Web/CSS/display-legacy <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{CSSSyntax}}</pre> +{{CSSSyntax}} <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/css/empty-cells/index.html b/files/zh-cn/web/css/empty-cells/index.html index 6098c59ac4..54591c7e5b 100644 --- a/files/zh-cn/web/css/empty-cells/index.html +++ b/files/zh-cn/web/css/empty-cells/index.html @@ -40,8 +40,7 @@ empty-cells: unset; <h3 id="语法形式">语法形式</h3> -<pre class="syntaxbox">{{csssyntax}} -</pre> +{{csssyntax}} <h2 id="Examples" name="Examples">示例</h2> diff --git a/files/zh-cn/web/css/env()/index.html b/files/zh-cn/web/css/env()/index.html index ff7f9e8bcb..eac3627359 100644 --- a/files/zh-cn/web/css/env()/index.html +++ b/files/zh-cn/web/css/env()/index.html @@ -58,7 +58,7 @@ env(safe-area-inset-left, 1.4rem); <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{CSSSyntax}}</pre> +{{CSSSyntax}} <h2 id="Examples">Examples</h2> diff --git a/files/zh-cn/web/css/filter/index.html b/files/zh-cn/web/css/filter/index.html index 2720d90030..27fe11b599 100644 --- a/files/zh-cn/web/css/filter/index.html +++ b/files/zh-cn/web/css/filter/index.html @@ -817,7 +817,7 @@ table.standard-table td { <h2 id="形式语法">形式语法</h2> -<pre dir="rtl">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/fit-content/index.html b/files/zh-cn/web/css/fit-content/index.html index ac7b3d2737..6813ee86d8 100644 --- a/files/zh-cn/web/css/fit-content/index.html +++ b/files/zh-cn/web/css/fit-content/index.html @@ -37,7 +37,7 @@ fit-content(40%) <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Example">Example</h2> diff --git a/files/zh-cn/web/css/flex-basis/index.html b/files/zh-cn/web/css/flex-basis/index.html index d23edb5b0f..7bfaa2a5a3 100644 --- a/files/zh-cn/web/css/flex-basis/index.html +++ b/files/zh-cn/web/css/flex-basis/index.html @@ -72,7 +72,7 @@ flex-basis: unset; <h3 id="规范">规范</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/css/flex-direction/index.html b/files/zh-cn/web/css/flex-direction/index.html index 8a63ba1e6e..eb1fa87ac0 100644 --- a/files/zh-cn/web/css/flex-direction/index.html +++ b/files/zh-cn/web/css/flex-direction/index.html @@ -50,8 +50,7 @@ flex-direction: unset;</code></pre> </dt> </dl> -<pre class="syntaxbox">{{csssyntax("flex-direction")}} -</pre> +{{csssyntax("flex-direction")}} <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/css/flex-grow/index.html b/files/zh-cn/web/css/flex-grow/index.html index a1f96403f6..fd191dc979 100644 --- a/files/zh-cn/web/css/flex-grow/index.html +++ b/files/zh-cn/web/css/flex-grow/index.html @@ -48,7 +48,7 @@ flex-grow: unset;</pre> <dt> <h3 id="正式语法">正式语法</h3> - <pre class="notranslate">{{csssyntax}}</pre> + {{csssyntax}} </dt> </dl> diff --git a/files/zh-cn/web/css/flex-shrink/index.html b/files/zh-cn/web/css/flex-shrink/index.html index 1f95357a2b..ec5d4d562a 100644 --- a/files/zh-cn/web/css/flex-shrink/index.html +++ b/files/zh-cn/web/css/flex-shrink/index.html @@ -38,7 +38,7 @@ flex-shrink: unset</pre> <dt> <h3 id="Formal_syntax">Formal syntax</h3> - <pre>{{csssyntax}}</pre> + {{csssyntax}} </dt> </dl> diff --git a/files/zh-cn/web/css/flex-wrap/index.html b/files/zh-cn/web/css/flex-wrap/index.html index 7fc3f1b342..f475ee79b3 100644 --- a/files/zh-cn/web/css/flex-wrap/index.html +++ b/files/zh-cn/web/css/flex-wrap/index.html @@ -46,8 +46,7 @@ flex-wrap: unset; </dt> </dl> -<pre class="syntaxbox">{{csssyntax}} -</pre> +{{csssyntax}} <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/css/flex/index.html b/files/zh-cn/web/css/flex/index.html index 295d7d9f34..05d709ea58 100644 --- a/files/zh-cn/web/css/flex/index.html +++ b/files/zh-cn/web/css/flex/index.html @@ -201,7 +201,7 @@ flex: unset; <h2 id="正式语法">正式语法</h2> -<pre class="notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/float/index.html b/files/zh-cn/web/css/float/index.html index 51e9f68bf1..9019329b2a 100644 --- a/files/zh-cn/web/css/float/index.html +++ b/files/zh-cn/web/css/float/index.html @@ -125,7 +125,7 @@ float: unset;</pre> <h3 id="形式化语法">形式化语法</h3> -<pre class="syntaxbox notranslate">{{csssyntax("float")}}</pre> +{{csssyntax("float")}} <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/css/font-family/index.html b/files/zh-cn/web/css/font-family/index.html index 399dc110a4..cd57fa892d 100644 --- a/files/zh-cn/web/css/font-family/index.html +++ b/files/zh-cn/web/css/font-family/index.html @@ -111,7 +111,7 @@ font-family: Hawaii 5-0, sans-serif;</pre> <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox notranslate">{{CSSSyntax}}</pre> +{{CSSSyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/font-feature-settings/index.html b/files/zh-cn/web/css/font-feature-settings/index.html index ee6c1cffa4..5d4b6f49f5 100644 --- a/files/zh-cn/web/css/font-feature-settings/index.html +++ b/files/zh-cn/web/css/font-feature-settings/index.html @@ -53,7 +53,7 @@ font-feature-settings: unset; <h3 id="形式语法">形式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="实例">实例</h2> diff --git a/files/zh-cn/web/css/font-kerning/index.html b/files/zh-cn/web/css/font-kerning/index.html index 3ef355842a..29fbc19714 100644 --- a/files/zh-cn/web/css/font-kerning/index.html +++ b/files/zh-cn/web/css/font-kerning/index.html @@ -41,7 +41,7 @@ font-kerning: unset; <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/font-language-override/index.html b/files/zh-cn/web/css/font-language-override/index.html index 80aa0c3cf8..2530ac2050 100644 --- a/files/zh-cn/web/css/font-language-override/index.html +++ b/files/zh-cn/web/css/font-language-override/index.html @@ -41,7 +41,7 @@ font-language-override: unset;</pre> <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/font-size-adjust/index.html b/files/zh-cn/web/css/font-size-adjust/index.html index 0aaa5b46dd..30a7541697 100644 --- a/files/zh-cn/web/css/font-size-adjust/index.html +++ b/files/zh-cn/web/css/font-size-adjust/index.html @@ -47,7 +47,7 @@ font-size-adjust: inherit; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax("font-size-adjust")}}</pre> +{{csssyntax("font-size-adjust")}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/font-size/index.html b/files/zh-cn/web/css/font-size/index.html index 70468a0b62..5c61a68884 100644 --- a/files/zh-cn/web/css/font-size/index.html +++ b/files/zh-cn/web/css/font-size/index.html @@ -60,8 +60,7 @@ font-size: inherit; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax("font-size")}} -</pre> +{{csssyntax("font-size")}} <h2 id="Possible_approaches" name="Possible_approaches">可用方法</h2> diff --git a/files/zh-cn/web/css/font-stretch/index.html b/files/zh-cn/web/css/font-stretch/index.html index 8782c3a629..8081d872e2 100644 --- a/files/zh-cn/web/css/font-stretch/index.html +++ b/files/zh-cn/web/css/font-stretch/index.html @@ -56,7 +56,7 @@ font-stretch: unset; <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Example">Example</h2> diff --git a/files/zh-cn/web/css/font-style/index.html b/files/zh-cn/web/css/font-style/index.html index 9eefa5b5f4..96995df092 100644 --- a/files/zh-cn/web/css/font-style/index.html +++ b/files/zh-cn/web/css/font-style/index.html @@ -147,7 +147,7 @@ update(); <h3 id="形式化语法">形式化语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/font-synthesis/index.html b/files/zh-cn/web/css/font-synthesis/index.html index c344d0a3f5..21b76c911e 100644 --- a/files/zh-cn/web/css/font-synthesis/index.html +++ b/files/zh-cn/web/css/font-synthesis/index.html @@ -42,7 +42,7 @@ translation_of: Web/CSS/font-synthesis <h3 id="形式化语法">形式化语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/css/font-variant-alternates/index.html b/files/zh-cn/web/css/font-variant-alternates/index.html index bc4fd876ce..429cff1cb0 100644 --- a/files/zh-cn/web/css/font-variant-alternates/index.html +++ b/files/zh-cn/web/css/font-variant-alternates/index.html @@ -66,7 +66,7 @@ font-variant-alternates: unset; <h2 id="正式语法">正式语法</h2> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/font-variant-caps/index.html b/files/zh-cn/web/css/font-variant-caps/index.html index 12b0fa5ecb..c964f73755 100644 --- a/files/zh-cn/web/css/font-variant-caps/index.html +++ b/files/zh-cn/web/css/font-variant-caps/index.html @@ -70,7 +70,7 @@ font-variant-caps: unset; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/font-variant-ligatures/index.html b/files/zh-cn/web/css/font-variant-ligatures/index.html index dea2c73f30..d40e959ddf 100644 --- a/files/zh-cn/web/css/font-variant-ligatures/index.html +++ b/files/zh-cn/web/css/font-variant-ligatures/index.html @@ -76,7 +76,7 @@ font-variant-ligatures: unset; <h2 id="Formal_syntax">Formal syntax</h2> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Examples">Examples</h2> diff --git a/files/zh-cn/web/css/font-variant-numeric/index.html b/files/zh-cn/web/css/font-variant-numeric/index.html index 16b4e1640c..626c67e399 100644 --- a/files/zh-cn/web/css/font-variant-numeric/index.html +++ b/files/zh-cn/web/css/font-variant-numeric/index.html @@ -77,7 +77,7 @@ font-variant-numeric: unset; <h2 id="Formal_syntax">Formal syntax</h2> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/font-variant-position/index.html b/files/zh-cn/web/css/font-variant-position/index.html index c150db8747..c62ca6fcaf 100644 --- a/files/zh-cn/web/css/font-variant-position/index.html +++ b/files/zh-cn/web/css/font-variant-position/index.html @@ -43,7 +43,7 @@ font-variant-position: unset; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/font-variant/index.html b/files/zh-cn/web/css/font-variant/index.html index 8b66cb1f50..a01120c3c3 100644 --- a/files/zh-cn/web/css/font-variant/index.html +++ b/files/zh-cn/web/css/font-variant/index.html @@ -49,7 +49,7 @@ font-variant: unset; </dt> </dl> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/font-variation-settings/index.html b/files/zh-cn/web/css/font-variation-settings/index.html index e55f4740ce..afa2352073 100644 --- a/files/zh-cn/web/css/font-variation-settings/index.html +++ b/files/zh-cn/web/css/font-variation-settings/index.html @@ -45,7 +45,7 @@ font-variation-settings: unset; <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Registered_and_custom_axes">Registered and custom axes</h2> diff --git a/files/zh-cn/web/css/font-weight/index.html b/files/zh-cn/web/css/font-weight/index.html index 6400488a40..67b4cf6a51 100644 --- a/files/zh-cn/web/css/font-weight/index.html +++ b/files/zh-cn/web/css/font-weight/index.html @@ -285,7 +285,7 @@ window.addEventListener('load', function () { <h3 id="正式的语法">正式的语法</h3> -<pre class="syntaxbox">{{csssyntax("font-weight")}}</pre> +{{csssyntax("font-weight")}} <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/css/font/index.html b/files/zh-cn/web/css/font/index.html index a8464557d8..40944a4194 100644 --- a/files/zh-cn/web/css/font/index.html +++ b/files/zh-cn/web/css/font/index.html @@ -85,7 +85,7 @@ translation_of: Web/CSS/font </dt> </dl> -<pre class="syntaxbox">{{csssyntax("font")}}</pre> +{{csssyntax("font")}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/gap/index.html b/files/zh-cn/web/css/gap/index.html index c95b2c5897..4b4c2276e4 100644 --- a/files/zh-cn/web/css/gap/index.html +++ b/files/zh-cn/web/css/gap/index.html @@ -66,7 +66,7 @@ gap: unset; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/grid-area/index.html b/files/zh-cn/web/css/grid-area/index.html index f3b85e611d..d5c5c3d9e2 100644 --- a/files/zh-cn/web/css/grid-area/index.html +++ b/files/zh-cn/web/css/grid-area/index.html @@ -95,7 +95,7 @@ grid-area: unset;</pre> <h3 id="形式文法">形式文法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/grid-auto-columns/index.html b/files/zh-cn/web/css/grid-auto-columns/index.html index b858046b8e..7b24f9199e 100644 --- a/files/zh-cn/web/css/grid-auto-columns/index.html +++ b/files/zh-cn/web/css/grid-auto-columns/index.html @@ -85,7 +85,7 @@ grid-auto-columns: unset; <h3 id="形式语法">形式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/grid-auto-flow/index.html b/files/zh-cn/web/css/grid-auto-flow/index.html index 11e133f057..bf53cdd92b 100644 --- a/files/zh-cn/web/css/grid-auto-flow/index.html +++ b/files/zh-cn/web/css/grid-auto-flow/index.html @@ -50,7 +50,7 @@ grid-auto-flow: unset;</pre> <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/grid-auto-rows/index.html b/files/zh-cn/web/css/grid-auto-rows/index.html index ce4385ca40..a448a6833b 100644 --- a/files/zh-cn/web/css/grid-auto-rows/index.html +++ b/files/zh-cn/web/css/grid-auto-rows/index.html @@ -84,7 +84,7 @@ grid-auto-rows: unset; <h3 id="形式语法">形式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/grid-column/index.html b/files/zh-cn/web/css/grid-column/index.html index f6074374b2..d826b70c60 100644 --- a/files/zh-cn/web/css/grid-column/index.html +++ b/files/zh-cn/web/css/grid-column/index.html @@ -61,7 +61,7 @@ translation_of: Web/CSS/grid-column <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/grid-row/index.html b/files/zh-cn/web/css/grid-row/index.html index d70f516ec5..4f5826271a 100644 --- a/files/zh-cn/web/css/grid-row/index.html +++ b/files/zh-cn/web/css/grid-row/index.html @@ -67,7 +67,7 @@ grid-row: unset; <h3 id="形式语法">形式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/grid-template-areas/index.html b/files/zh-cn/web/css/grid-template-areas/index.html index ac9197b0f5..15cdc56df2 100644 --- a/files/zh-cn/web/css/grid-template-areas/index.html +++ b/files/zh-cn/web/css/grid-template-areas/index.html @@ -47,7 +47,7 @@ grid-template-areas: unset; /* 未设置 */ <h3 id="形式化语法">形式化语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/css/grid-template-columns/index.html b/files/zh-cn/web/css/grid-template-columns/index.html index 00ed19a00f..bb3150a257 100644 --- a/files/zh-cn/web/css/grid-template-columns/index.html +++ b/files/zh-cn/web/css/grid-template-columns/index.html @@ -74,7 +74,7 @@ grid-template-columns: unset; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/grid-template-rows/index.html b/files/zh-cn/web/css/grid-template-rows/index.html index a898da47be..fdffd201ff 100644 --- a/files/zh-cn/web/css/grid-template-rows/index.html +++ b/files/zh-cn/web/css/grid-template-rows/index.html @@ -83,7 +83,7 @@ grid-template-rows: unset; <h3 id="正式语法">正式语法</h3> -<pre>{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/grid-template/index.html b/files/zh-cn/web/css/grid-template/index.html index 7727ea9f32..0b79fc80d3 100644 --- a/files/zh-cn/web/css/grid-template/index.html +++ b/files/zh-cn/web/css/grid-template/index.html @@ -57,7 +57,7 @@ grid-template: unset; <h3 id="语法形式">语法形式</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/grid/index.html b/files/zh-cn/web/css/grid/index.html index 750631c773..2e4e255ebe 100644 --- a/files/zh-cn/web/css/grid/index.html +++ b/files/zh-cn/web/css/grid/index.html @@ -66,7 +66,7 @@ grid: unset; <h3 id="标准语法">标准语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="实例">实例</h2> diff --git a/files/zh-cn/web/css/hanging-punctuation/index.html b/files/zh-cn/web/css/hanging-punctuation/index.html index b7d28f226f..294186c448 100644 --- a/files/zh-cn/web/css/hanging-punctuation/index.html +++ b/files/zh-cn/web/css/hanging-punctuation/index.html @@ -74,7 +74,7 @@ hanging-punctuation: unset; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/height/index.html b/files/zh-cn/web/css/height/index.html index 1666465e3f..418aa0e2bd 100644 --- a/files/zh-cn/web/css/height/index.html +++ b/files/zh-cn/web/css/height/index.html @@ -62,7 +62,7 @@ height: unset;</pre> <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/hyphens/index.html b/files/zh-cn/web/css/hyphens/index.html index 6854413c53..953d834e50 100644 --- a/files/zh-cn/web/css/hyphens/index.html +++ b/files/zh-cn/web/css/hyphens/index.html @@ -53,7 +53,7 @@ hyphens: unset; <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/image-rendering/index.html b/files/zh-cn/web/css/image-rendering/index.html index dc09652427..7541d7c317 100644 --- a/files/zh-cn/web/css/image-rendering/index.html +++ b/files/zh-cn/web/css/image-rendering/index.html @@ -51,7 +51,7 @@ image-rendering: unset;</pre> <h3 id="形式化语法">形式化语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/css/inline-size/index.html b/files/zh-cn/web/css/inline-size/index.html index ca87a6528f..c0b216abc9 100644 --- a/files/zh-cn/web/css/inline-size/index.html +++ b/files/zh-cn/web/css/inline-size/index.html @@ -48,7 +48,7 @@ inline-size: unset; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/justify-content/index.html b/files/zh-cn/web/css/justify-content/index.html index d06a19bbe5..26e42dc88c 100644 --- a/files/zh-cn/web/css/justify-content/index.html +++ b/files/zh-cn/web/css/justify-content/index.html @@ -94,8 +94,7 @@ justify-content: unset;</pre> <h3 id="语法格式">语法格式</h3> -<pre class="syntaxbox notranslate">{{csssyntax}} -</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/justify-items/index.html b/files/zh-cn/web/css/justify-items/index.html index f633239a93..93289a5268 100644 --- a/files/zh-cn/web/css/justify-items/index.html +++ b/files/zh-cn/web/css/justify-items/index.html @@ -118,7 +118,7 @@ justify-items: unset; <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox notranslate">{{CSSSyntax}}</pre> +{{CSSSyntax}} <h2 id="规范">规范</h2> diff --git a/files/zh-cn/web/css/justify-self/index.html b/files/zh-cn/web/css/justify-self/index.html index 0fc7e658b5..8e4596efc1 100644 --- a/files/zh-cn/web/css/justify-self/index.html +++ b/files/zh-cn/web/css/justify-self/index.html @@ -123,7 +123,7 @@ justify-self: unset; <h2 id="形式化语法">形式化语法</h2> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/css/left/index.html b/files/zh-cn/web/css/left/index.html index 376c0b8168..6981340af4 100644 --- a/files/zh-cn/web/css/left/index.html +++ b/files/zh-cn/web/css/left/index.html @@ -68,7 +68,7 @@ left: unset; <h3 id="常用语法">常用语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/letter-spacing/index.html b/files/zh-cn/web/css/letter-spacing/index.html index 9178182664..8f3126157f 100644 --- a/files/zh-cn/web/css/letter-spacing/index.html +++ b/files/zh-cn/web/css/letter-spacing/index.html @@ -42,7 +42,7 @@ letter-spacing: unset; <h3 id="形式语法">形式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/line-break/index.html b/files/zh-cn/web/css/line-break/index.html index 2419b7a3f1..93aa342f40 100644 --- a/files/zh-cn/web/css/line-break/index.html +++ b/files/zh-cn/web/css/line-break/index.html @@ -49,7 +49,7 @@ line-break: unset; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="规范">规范</h2> diff --git a/files/zh-cn/web/css/line-height/index.html b/files/zh-cn/web/css/line-height/index.html index c951c61fc4..a2f3c13bb7 100644 --- a/files/zh-cn/web/css/line-height/index.html +++ b/files/zh-cn/web/css/line-height/index.html @@ -62,7 +62,7 @@ line-height: unset; <h3 id="形式化语法">形式化语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例"><strong>示例</strong></h2> diff --git a/files/zh-cn/web/css/list-style-image/index.html b/files/zh-cn/web/css/list-style-image/index.html index 8d026ccf10..6185aca835 100644 --- a/files/zh-cn/web/css/list-style-image/index.html +++ b/files/zh-cn/web/css/list-style-image/index.html @@ -42,7 +42,7 @@ list-style-image: unset; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="举例">举例</h2> diff --git a/files/zh-cn/web/css/list-style-position/index.html b/files/zh-cn/web/css/list-style-position/index.html index eb83b0b108..1b63e9c8b6 100644 --- a/files/zh-cn/web/css/list-style-position/index.html +++ b/files/zh-cn/web/css/list-style-position/index.html @@ -34,7 +34,7 @@ list-style-position: unset; <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/css/list-style-type/index.html b/files/zh-cn/web/css/list-style-type/index.html index 300b44c3ba..6350c67987 100644 --- a/files/zh-cn/web/css/list-style-type/index.html +++ b/files/zh-cn/web/css/list-style-type/index.html @@ -462,7 +462,7 @@ list-style-type: unset; <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/css/margin-block-start/index.html b/files/zh-cn/web/css/margin-block-start/index.html index 34afdf89f0..de4b58cc63 100644 --- a/files/zh-cn/web/css/margin-block-start/index.html +++ b/files/zh-cn/web/css/margin-block-start/index.html @@ -35,7 +35,7 @@ margin-block-start: unset <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="案例">案例</h2> diff --git a/files/zh-cn/web/css/margin-block/index.html b/files/zh-cn/web/css/margin-block/index.html index 696903ab8f..d82177174c 100644 --- a/files/zh-cn/web/css/margin-block/index.html +++ b/files/zh-cn/web/css/margin-block/index.html @@ -34,7 +34,7 @@ margin-block: unset; <h3 id="正规语法">正规语法</h3> -<pre class="syntaxbox">{{CSSSyntax}}</pre> +{{CSSSyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/margin-bottom/index.html b/files/zh-cn/web/css/margin-bottom/index.html index 5705d9d2dc..4a5b7f23b7 100644 --- a/files/zh-cn/web/css/margin-bottom/index.html +++ b/files/zh-cn/web/css/margin-bottom/index.html @@ -48,7 +48,7 @@ margin-bottom: unset; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Example" name="Example">样例</h2> diff --git a/files/zh-cn/web/css/margin-left/index.html b/files/zh-cn/web/css/margin-left/index.html index b854468cc6..c7f3b25b19 100644 --- a/files/zh-cn/web/css/margin-left/index.html +++ b/files/zh-cn/web/css/margin-left/index.html @@ -102,7 +102,7 @@ margin-left: unset; <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax()}}</pre> +{{csssyntax()}} <h2 id="Examples" name="Examples">Examples</h2> diff --git a/files/zh-cn/web/css/margin-right/index.html b/files/zh-cn/web/css/margin-right/index.html index 295e126588..a0a25c9993 100644 --- a/files/zh-cn/web/css/margin-right/index.html +++ b/files/zh-cn/web/css/margin-right/index.html @@ -101,7 +101,7 @@ margin-right: unset; <h3 id="形式语法">形式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Examples" name="Examples">实例</h2> diff --git a/files/zh-cn/web/css/margin-top/index.html b/files/zh-cn/web/css/margin-top/index.html index 931872da2b..3e12c45805 100644 --- a/files/zh-cn/web/css/margin-top/index.html +++ b/files/zh-cn/web/css/margin-top/index.html @@ -42,7 +42,7 @@ margin-top: unset; <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Examples" name="Examples">示例</h2> diff --git a/files/zh-cn/web/css/margin/index.html b/files/zh-cn/web/css/margin/index.html index 5c9ecf8baf..b5faa06f68 100644 --- a/files/zh-cn/web/css/margin/index.html +++ b/files/zh-cn/web/css/margin/index.html @@ -65,7 +65,7 @@ margin: unset; <h3 id="语法格式">语法格式</h3> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/mask-border-mode/index.html b/files/zh-cn/web/css/mask-border-mode/index.html index d23aa62491..aea7fc9a07 100644 --- a/files/zh-cn/web/css/mask-border-mode/index.html +++ b/files/zh-cn/web/css/mask-border-mode/index.html @@ -30,7 +30,7 @@ mask-border-mode: unset; <h3 id="形式语法"><font><font>形式语法</font></font></h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="产品规格"><font><font>产品规格</font></font></h2> diff --git a/files/zh-cn/web/css/mask-border-repeat/index.html b/files/zh-cn/web/css/mask-border-repeat/index.html index 4a67d40648..0ad3027f29 100644 --- a/files/zh-cn/web/css/mask-border-repeat/index.html +++ b/files/zh-cn/web/css/mask-border-repeat/index.html @@ -46,7 +46,7 @@ mask-border-repeat: unset; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Specifications" name="Specifications">规范</h2> diff --git a/files/zh-cn/web/css/mask-border-slice/index.html b/files/zh-cn/web/css/mask-border-slice/index.html index f183bc1787..d63ef936de 100644 --- a/files/zh-cn/web/css/mask-border-slice/index.html +++ b/files/zh-cn/web/css/mask-border-slice/index.html @@ -74,7 +74,7 @@ mask-border-slice: unset; <h2 id="形式语法">形式语法</h2> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/css/mask-border-width/index.html b/files/zh-cn/web/css/mask-border-width/index.html index c161c7ac0e..635ccad45e 100644 --- a/files/zh-cn/web/css/mask-border-width/index.html +++ b/files/zh-cn/web/css/mask-border-width/index.html @@ -58,7 +58,7 @@ mask-border-width: unset; <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Specifications" name="Specifications">Specifications</h2> diff --git a/files/zh-cn/web/css/mask-border/index.html b/files/zh-cn/web/css/mask-border/index.html index ecd3d44814..db3177d5fe 100644 --- a/files/zh-cn/web/css/mask-border/index.html +++ b/files/zh-cn/web/css/mask-border/index.html @@ -43,7 +43,7 @@ mask-border: url('border-mask.png') 25 / 35px / 12px space alpha; <h3 id="形式语法">形式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="范例">范例</h2> diff --git a/files/zh-cn/web/css/mask-image/index.html b/files/zh-cn/web/css/mask-image/index.html index cb3e1ce5d3..ef59ab1649 100644 --- a/files/zh-cn/web/css/mask-image/index.html +++ b/files/zh-cn/web/css/mask-image/index.html @@ -45,7 +45,7 @@ mask-image: unset; <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/css/mask-mode/index.html b/files/zh-cn/web/css/mask-mode/index.html index 40530bfd98..f533a8e18d 100644 --- a/files/zh-cn/web/css/mask-mode/index.html +++ b/files/zh-cn/web/css/mask-mode/index.html @@ -48,7 +48,7 @@ mask-mode: unset; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/mask-repeat/index.html b/files/zh-cn/web/css/mask-repeat/index.html index f052ccc58d..2e125af559 100644 --- a/files/zh-cn/web/css/mask-repeat/index.html +++ b/files/zh-cn/web/css/mask-repeat/index.html @@ -104,7 +104,7 @@ mask-repeat: unset; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/css/mask/index.html b/files/zh-cn/web/css/mask/index.html index 47d5048e34..c429766d52 100644 --- a/files/zh-cn/web/css/mask/index.html +++ b/files/zh-cn/web/css/mask/index.html @@ -59,7 +59,7 @@ mask: unset; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/css/max()/index.html b/files/zh-cn/web/css/max()/index.html index 35592e45fd..c5d3f3de89 100644 --- a/files/zh-cn/web/css/max()/index.html +++ b/files/zh-cn/web/css/max()/index.html @@ -32,7 +32,7 @@ width: max(10vw, 4em, 80px); <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox notranslate">{{CSSSyntax}}</pre> +{{CSSSyntax}} <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/css/max-height/index.html b/files/zh-cn/web/css/max-height/index.html index 919ed11b3b..da35b710d3 100644 --- a/files/zh-cn/web/css/max-height/index.html +++ b/files/zh-cn/web/css/max-height/index.html @@ -54,7 +54,7 @@ max-height: unset; <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Examples">Examples</h2> diff --git a/files/zh-cn/web/css/max-width/index.html b/files/zh-cn/web/css/max-width/index.html index 10a4e12f17..c059156cad 100644 --- a/files/zh-cn/web/css/max-width/index.html +++ b/files/zh-cn/web/css/max-width/index.html @@ -55,7 +55,7 @@ max-width: unset; <h3 id="形式语法">形式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/css/min()/index.html b/files/zh-cn/web/css/min()/index.html index 48914aeb84..7ce2caed4f 100644 --- a/files/zh-cn/web/css/min()/index.html +++ b/files/zh-cn/web/css/min()/index.html @@ -28,7 +28,7 @@ width: min(1vw, 4em, 80px);</pre> <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox notranslate">{{CSSSyntax}}</pre> +{{CSSSyntax}} <h2 id="Examples">Examples</h2> diff --git a/files/zh-cn/web/css/min-height/index.html b/files/zh-cn/web/css/min-height/index.html index 29775ae7f5..ddf6dfa5a4 100644 --- a/files/zh-cn/web/css/min-height/index.html +++ b/files/zh-cn/web/css/min-height/index.html @@ -57,7 +57,7 @@ min-height: unset; <h2 id="Formal_syntax">Formal syntax</h2> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/minmax()/index.html b/files/zh-cn/web/css/minmax()/index.html index 12a51de21a..a21065d6c3 100644 --- a/files/zh-cn/web/css/minmax()/index.html +++ b/files/zh-cn/web/css/minmax()/index.html @@ -66,7 +66,7 @@ minmax(auto, 300px) <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> <div id="example"> diff --git a/files/zh-cn/web/css/mix-blend-mode/index.html b/files/zh-cn/web/css/mix-blend-mode/index.html index 97c0590e1e..3443520ea1 100644 --- a/files/zh-cn/web/css/mix-blend-mode/index.html +++ b/files/zh-cn/web/css/mix-blend-mode/index.html @@ -48,7 +48,7 @@ mix-blend-mode: unset; <h2 id="形式语法">形式语法</h2> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Examples" name="Examples">示例</h2> diff --git a/files/zh-cn/web/css/object-fit/index.html b/files/zh-cn/web/css/object-fit/index.html index 754a37dd05..0b12e010fd 100644 --- a/files/zh-cn/web/css/object-fit/index.html +++ b/files/zh-cn/web/css/object-fit/index.html @@ -39,7 +39,7 @@ translation_of: Web/CSS/object-fit <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Example" name="Example">例子</h2> diff --git a/files/zh-cn/web/css/object-position/index.html b/files/zh-cn/web/css/object-position/index.html index cb4f8d6bdf..c7ab78ad98 100644 --- a/files/zh-cn/web/css/object-position/index.html +++ b/files/zh-cn/web/css/object-position/index.html @@ -42,7 +42,7 @@ object-position: unset; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/css/offset/index.html b/files/zh-cn/web/css/offset/index.html index 090e97fae9..f1a966329a 100644 --- a/files/zh-cn/web/css/offset/index.html +++ b/files/zh-cn/web/css/offset/index.html @@ -40,7 +40,7 @@ offset: url(arc.svg) 30deg / 50px 100px; <h3 id="语法形式">语法形式</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="举例">举例</h2> diff --git a/files/zh-cn/web/css/opacity/index.html b/files/zh-cn/web/css/opacity/index.html index 4723b4338c..e1c57194f3 100644 --- a/files/zh-cn/web/css/opacity/index.html +++ b/files/zh-cn/web/css/opacity/index.html @@ -61,7 +61,7 @@ opacity: inherit; <h3 id="正式规则">正式规则</h3> -<pre class="syntaxbox notranslate">{{csssyntax("opacity")}}</pre> +{{csssyntax("opacity")}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/order/index.html b/files/zh-cn/web/css/order/index.html index 44f597ff11..37f8da8ae8 100644 --- a/files/zh-cn/web/css/order/index.html +++ b/files/zh-cn/web/css/order/index.html @@ -38,8 +38,7 @@ order: unset; <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}} -</pre> +{{csssyntax}} <h2 id="Examples" name="Examples">例子</h2> diff --git a/files/zh-cn/web/css/outline-color/index.html b/files/zh-cn/web/css/outline-color/index.html index 457caab022..05b1158804 100644 --- a/files/zh-cn/web/css/outline-color/index.html +++ b/files/zh-cn/web/css/outline-color/index.html @@ -44,7 +44,7 @@ outline-color: unset; <h3 id="正规语法">正规语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/css/outline-offset/index.html b/files/zh-cn/web/css/outline-offset/index.html index b195c09a4e..3d928679a5 100644 --- a/files/zh-cn/web/css/outline-offset/index.html +++ b/files/zh-cn/web/css/outline-offset/index.html @@ -38,7 +38,7 @@ outline-offset: unset; <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Examples">Examples</h2> diff --git a/files/zh-cn/web/css/outline-style/index.html b/files/zh-cn/web/css/outline-style/index.html index b72b7ca9d3..d38b4ed59e 100644 --- a/files/zh-cn/web/css/outline-style/index.html +++ b/files/zh-cn/web/css/outline-style/index.html @@ -73,7 +73,7 @@ outline-style: unset; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Example_1_-_dotted_and_dashed" name="Example_1_-_dotted_and_dashed">示例 1 <code>dotted</code> 和 <code>dashed</code></h2> diff --git a/files/zh-cn/web/css/outline-width/index.html b/files/zh-cn/web/css/outline-width/index.html index 80e5b04b2e..3dc8e46c4a 100644 --- a/files/zh-cn/web/css/outline-width/index.html +++ b/files/zh-cn/web/css/outline-width/index.html @@ -45,7 +45,7 @@ outline-width: inherit; <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Examples">Examples</h2> diff --git a/files/zh-cn/web/css/outline/index.html b/files/zh-cn/web/css/outline/index.html index 64d1db06c4..927ab2e622 100644 --- a/files/zh-cn/web/css/outline/index.html +++ b/files/zh-cn/web/css/outline/index.html @@ -65,7 +65,7 @@ outline: unset;</pre> <h3 id="形式语法">形式语法</h3> -<pre class="syntaxbox notranslate">{{csssyntax("outline")}}</pre> +{{csssyntax("outline")}} <h2 id="Examples" name="Examples">示例</h2> diff --git a/files/zh-cn/web/css/overflow-anchor/index.html b/files/zh-cn/web/css/overflow-anchor/index.html index 42150355bf..5943c6ecfb 100644 --- a/files/zh-cn/web/css/overflow-anchor/index.html +++ b/files/zh-cn/web/css/overflow-anchor/index.html @@ -35,7 +35,7 @@ overflow-anchor: unset; <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="范例">范例</h2> diff --git a/files/zh-cn/web/css/overflow-block/index.html b/files/zh-cn/web/css/overflow-block/index.html index 2112e76e88..c44280ecf9 100644 --- a/files/zh-cn/web/css/overflow-block/index.html +++ b/files/zh-cn/web/css/overflow-block/index.html @@ -46,7 +46,7 @@ overflow-block: unset; <h2 id="Formal_syntax">Formal syntax</h2> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Examples">Examples</h2> diff --git a/files/zh-cn/web/css/overflow-wrap/index.html b/files/zh-cn/web/css/overflow-wrap/index.html index f772393d8b..bf372dba38 100644 --- a/files/zh-cn/web/css/overflow-wrap/index.html +++ b/files/zh-cn/web/css/overflow-wrap/index.html @@ -54,7 +54,7 @@ overflow-wrap: unset;</code> <h2 id="形式语法">形式语法</h2> -<pre class="notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Examples" name="Examples">示例</h2> diff --git a/files/zh-cn/web/css/overflow-y/index.html b/files/zh-cn/web/css/overflow-y/index.html index 0665e1a0ce..08941c82e5 100644 --- a/files/zh-cn/web/css/overflow-y/index.html +++ b/files/zh-cn/web/css/overflow-y/index.html @@ -58,8 +58,7 @@ overflow-y: unset; /*未设置*/ <dt> <h3 id="Formal_syntax正式语法">Formal syntax[正式语法]</h3> - <pre>{{csssyntax("overflow-y")}} -</pre> + {{csssyntax("overflow-y")}} </dt> </dl> diff --git a/files/zh-cn/web/css/overflow/index.html b/files/zh-cn/web/css/overflow/index.html index 40edff75c2..fc78daee71 100644 --- a/files/zh-cn/web/css/overflow/index.html +++ b/files/zh-cn/web/css/overflow/index.html @@ -99,7 +99,7 @@ overflow: scroll hidden;</code></pre> <h3 id="形式语法" style="font-size: 1.71428571428571rem;">形式语法</h3> -<pre class="syntaxbox" style="font-size: 14px; white-space: normal;">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例" style="margin-bottom: 20px; font-size: 2.14285714285714rem;">示例</h2> diff --git a/files/zh-cn/web/css/overscroll-behavior-x/index.html b/files/zh-cn/web/css/overscroll-behavior-x/index.html index 91364ff10d..090c4e5be6 100644 --- a/files/zh-cn/web/css/overscroll-behavior-x/index.html +++ b/files/zh-cn/web/css/overscroll-behavior-x/index.html @@ -48,7 +48,7 @@ overflow: unset; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/overscroll-behavior-y/index.html b/files/zh-cn/web/css/overscroll-behavior-y/index.html index ad0061fd6c..b505b44e0b 100644 --- a/files/zh-cn/web/css/overscroll-behavior-y/index.html +++ b/files/zh-cn/web/css/overscroll-behavior-y/index.html @@ -41,7 +41,7 @@ overflow: unset; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/overscroll-behavior/index.html b/files/zh-cn/web/css/overscroll-behavior/index.html index 728f41aa94..4cbfea5933 100644 --- a/files/zh-cn/web/css/overscroll-behavior/index.html +++ b/files/zh-cn/web/css/overscroll-behavior/index.html @@ -46,7 +46,7 @@ overflow: unset; <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Examples">Examples</h2> diff --git a/files/zh-cn/web/css/padding-bottom/index.html b/files/zh-cn/web/css/padding-bottom/index.html index 3046bcce32..d9d588167a 100644 --- a/files/zh-cn/web/css/padding-bottom/index.html +++ b/files/zh-cn/web/css/padding-bottom/index.html @@ -43,7 +43,7 @@ padding-bottom: unset; <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Examples">Examples</h2> diff --git a/files/zh-cn/web/css/padding-inline-start/index.html b/files/zh-cn/web/css/padding-inline-start/index.html index a127a401cc..dca56682c7 100644 --- a/files/zh-cn/web/css/padding-inline-start/index.html +++ b/files/zh-cn/web/css/padding-inline-start/index.html @@ -34,7 +34,7 @@ padding-inline-start: unset; <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="范例">范例</h2> diff --git a/files/zh-cn/web/css/padding-left/index.html b/files/zh-cn/web/css/padding-left/index.html index ca761410c0..19d5301c76 100644 --- a/files/zh-cn/web/css/padding-left/index.html +++ b/files/zh-cn/web/css/padding-left/index.html @@ -50,7 +50,7 @@ padding-left: unset; <h2 id="标准语法">标准语法</h2> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="样例">样例</h2> diff --git a/files/zh-cn/web/css/padding-right/index.html b/files/zh-cn/web/css/padding-right/index.html index 77b17279d0..b9d591adff 100644 --- a/files/zh-cn/web/css/padding-right/index.html +++ b/files/zh-cn/web/css/padding-right/index.html @@ -40,7 +40,7 @@ padding-right: unset; <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Examples" name="Examples">Examples</h2> diff --git a/files/zh-cn/web/css/padding-top/index.html b/files/zh-cn/web/css/padding-top/index.html index 1b1e3f2db3..473a0194e5 100644 --- a/files/zh-cn/web/css/padding-top/index.html +++ b/files/zh-cn/web/css/padding-top/index.html @@ -42,7 +42,7 @@ padding-top: unset; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Examples" name="Examples">实例</h2> diff --git a/files/zh-cn/web/css/padding/index.html b/files/zh-cn/web/css/padding/index.html index 2578e45113..98f15f34a0 100644 --- a/files/zh-cn/web/css/padding/index.html +++ b/files/zh-cn/web/css/padding/index.html @@ -72,7 +72,7 @@ padding: unset; <h2 id="语法格式">语法格式</h2> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/page-break-after/index.html b/files/zh-cn/web/css/page-break-after/index.html index 2aa6605d92..7b5632ee5b 100644 --- a/files/zh-cn/web/css/page-break-after/index.html +++ b/files/zh-cn/web/css/page-break-after/index.html @@ -80,7 +80,7 @@ page-break-after: unset; <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Examples">Examples</h2> diff --git a/files/zh-cn/web/css/page-break-inside/index.html b/files/zh-cn/web/css/page-break-inside/index.html index 08dbf235bb..a1d1f85530 100644 --- a/files/zh-cn/web/css/page-break-inside/index.html +++ b/files/zh-cn/web/css/page-break-inside/index.html @@ -34,7 +34,7 @@ page-break-inside: unset; <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Example">Example</h2> diff --git a/files/zh-cn/web/css/paint-order/index.html b/files/zh-cn/web/css/paint-order/index.html index 4683868cb1..aa743728c5 100644 --- a/files/zh-cn/web/css/paint-order/index.html +++ b/files/zh-cn/web/css/paint-order/index.html @@ -43,7 +43,7 @@ paint-order: markers stroke fill; /* 先 markers, 然后 stroke, 然后 fill */ <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="使用示例">使用示例</h2> diff --git a/files/zh-cn/web/css/perspective-origin/index.html b/files/zh-cn/web/css/perspective-origin/index.html index 14843dc64d..ca5daeeb37 100644 --- a/files/zh-cn/web/css/perspective-origin/index.html +++ b/files/zh-cn/web/css/perspective-origin/index.html @@ -54,7 +54,7 @@ perspective-origin: unset; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="举例">举例</h2> diff --git a/files/zh-cn/web/css/perspective/index.html b/files/zh-cn/web/css/perspective/index.html index 9a34e9d980..a323831a33 100644 --- a/files/zh-cn/web/css/perspective/index.html +++ b/files/zh-cn/web/css/perspective/index.html @@ -43,7 +43,7 @@ perspective: unset; <h3 id="标准语法">标准语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="举例">举例</h2> diff --git a/files/zh-cn/web/css/place-content/index.html b/files/zh-cn/web/css/place-content/index.html index fbee4af97b..964127b278 100644 --- a/files/zh-cn/web/css/place-content/index.html +++ b/files/zh-cn/web/css/place-content/index.html @@ -80,7 +80,7 @@ place-content: unset;</pre> <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox notranslate">{{CSSSyntax}}</pre> +{{CSSSyntax}} <h2 id="举例">举例</h2> diff --git a/files/zh-cn/web/css/place-items/index.html b/files/zh-cn/web/css/place-items/index.html index 914901a09c..6c9d14db3e 100644 --- a/files/zh-cn/web/css/place-items/index.html +++ b/files/zh-cn/web/css/place-items/index.html @@ -101,7 +101,7 @@ place-items: unset; <h2 id="形式语法">形式语法</h2> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/position/index.html b/files/zh-cn/web/css/position/index.html index 285f7c038b..268fc35d3f 100644 --- a/files/zh-cn/web/css/position/index.html +++ b/files/zh-cn/web/css/position/index.html @@ -57,8 +57,7 @@ translation_of: Web/CSS/position <h3 id="常见语法" style="font-size: 1.71428571428571rem;">常见语法</h3> -<pre class="notranslate">{{csssyntax}} -</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/quotes/index.html b/files/zh-cn/web/css/quotes/index.html index 41d4290b70..a32d8d45d7 100644 --- a/files/zh-cn/web/css/quotes/index.html +++ b/files/zh-cn/web/css/quotes/index.html @@ -41,7 +41,7 @@ quotes: unset; <h3 id="语法格式">语法格式</h3> -<pre>{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/resize/index.html b/files/zh-cn/web/css/resize/index.html index 095c57ec78..95f00e5ec9 100644 --- a/files/zh-cn/web/css/resize/index.html +++ b/files/zh-cn/web/css/resize/index.html @@ -51,7 +51,7 @@ resize: unset; <h3 id="标准语法">标准语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/css/right/index.html b/files/zh-cn/web/css/right/index.html index 79559cebac..ad42f44abc 100644 --- a/files/zh-cn/web/css/right/index.html +++ b/files/zh-cn/web/css/right/index.html @@ -63,7 +63,7 @@ right: unset;</code> <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Examples" name="Examples"><strong>示例</strong></h2> diff --git a/files/zh-cn/web/css/rotate/index.html b/files/zh-cn/web/css/rotate/index.html index 6173e189c9..1103194d9b 100644 --- a/files/zh-cn/web/css/rotate/index.html +++ b/files/zh-cn/web/css/rotate/index.html @@ -40,7 +40,7 @@ rotate: 1 1 1 90deg;</pre> <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/row-gap/index.html b/files/zh-cn/web/css/row-gap/index.html index 2749f187da..562dd8ef33 100644 --- a/files/zh-cn/web/css/row-gap/index.html +++ b/files/zh-cn/web/css/row-gap/index.html @@ -41,7 +41,7 @@ row-gap: unset; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/scale/index.html b/files/zh-cn/web/css/scale/index.html index e77add2f27..6ec65c0e87 100644 --- a/files/zh-cn/web/css/scale/index.html +++ b/files/zh-cn/web/css/scale/index.html @@ -42,7 +42,7 @@ scale: 2 0.5 2;</pre> <h3 id="标准语法">标准语法</h3> -<pre class="syntaxbox">{{CSSSyntax}}</pre> +{{CSSSyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/scroll-behavior/index.html b/files/zh-cn/web/css/scroll-behavior/index.html index 896ef6d6a0..b9bc1aee5c 100644 --- a/files/zh-cn/web/css/scroll-behavior/index.html +++ b/files/zh-cn/web/css/scroll-behavior/index.html @@ -43,7 +43,7 @@ scroll-behavior: unset; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/css/scroll-margin-top/index.html b/files/zh-cn/web/css/scroll-margin-top/index.html index 499f5f0a41..86a2719795 100644 --- a/files/zh-cn/web/css/scroll-margin-top/index.html +++ b/files/zh-cn/web/css/scroll-margin-top/index.html @@ -43,7 +43,7 @@ scroll-margin-top: unset; <h2 id="标准语法">标准语法</h2> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="规范">规范</h2> diff --git a/files/zh-cn/web/css/scroll-margin/index.html b/files/zh-cn/web/css/scroll-margin/index.html index cfe4143ea2..63652e9d2b 100644 --- a/files/zh-cn/web/css/scroll-margin/index.html +++ b/files/zh-cn/web/css/scroll-margin/index.html @@ -36,7 +36,7 @@ scroll-margin: unset; <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Specification">Specification</h2> diff --git a/files/zh-cn/web/css/scroll-snap-coordinate/index.html b/files/zh-cn/web/css/scroll-snap-coordinate/index.html index 76f9ff8666..653df49790 100644 --- a/files/zh-cn/web/css/scroll-snap-coordinate/index.html +++ b/files/zh-cn/web/css/scroll-snap-coordinate/index.html @@ -42,7 +42,7 @@ scroll-snap-coordinate: unset; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/scroll-snap-destination/index.html b/files/zh-cn/web/css/scroll-snap-destination/index.html index 8e33857321..c2042ca391 100644 --- a/files/zh-cn/web/css/scroll-snap-destination/index.html +++ b/files/zh-cn/web/css/scroll-snap-destination/index.html @@ -31,7 +31,7 @@ scroll-snap-destination: unset; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/scroll-snap-points-x/index.html b/files/zh-cn/web/css/scroll-snap-points-x/index.html index 29ed5bd8b8..c2b0b3c2fc 100644 --- a/files/zh-cn/web/css/scroll-snap-points-x/index.html +++ b/files/zh-cn/web/css/scroll-snap-points-x/index.html @@ -39,7 +39,7 @@ scroll-snap-points-x: unset; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Example" name="Example">示例</h2> diff --git a/files/zh-cn/web/css/scroll-snap-points-y/index.html b/files/zh-cn/web/css/scroll-snap-points-y/index.html index 5e2aa4f4de..ad78875020 100644 --- a/files/zh-cn/web/css/scroll-snap-points-y/index.html +++ b/files/zh-cn/web/css/scroll-snap-points-y/index.html @@ -39,7 +39,7 @@ scroll-snap-points-y: unset; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/scroll-snap-type/index.html b/files/zh-cn/web/css/scroll-snap-type/index.html index 786d07e4e7..15ccec4dd5 100644 --- a/files/zh-cn/web/css/scroll-snap-type/index.html +++ b/files/zh-cn/web/css/scroll-snap-type/index.html @@ -63,7 +63,7 @@ scroll-snap-type: unset;</code></pre> <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Example" name="Example">示例</h2> diff --git a/files/zh-cn/web/css/scrollbar-color/index.html b/files/zh-cn/web/css/scrollbar-color/index.html index 7105af33fd..124b188a81 100644 --- a/files/zh-cn/web/css/scrollbar-color/index.html +++ b/files/zh-cn/web/css/scrollbar-color/index.html @@ -64,7 +64,7 @@ scrollbar-color: unset; <h3 id="形式语法"><font><font>形式语法</font></font></h3> -<pre class="syntaxbox notranslate">{{CSSSyntax}}</pre> +{{CSSSyntax}} <h2 id="Example" name="Example"><font><font>例子</font></font></h2> diff --git a/files/zh-cn/web/css/scrollbar-width/index.html b/files/zh-cn/web/css/scrollbar-width/index.html index e40be4ef7c..b3b634664a 100644 --- a/files/zh-cn/web/css/scrollbar-width/index.html +++ b/files/zh-cn/web/css/scrollbar-width/index.html @@ -56,7 +56,7 @@ scrollbar-width: unset; <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{CSSSyntax}}</pre> +{{CSSSyntax}} <h2 id="Example" name="Example">Example</h2> diff --git a/files/zh-cn/web/css/shape-image-threshold/index.html b/files/zh-cn/web/css/shape-image-threshold/index.html index 135715233f..1f4daae524 100644 --- a/files/zh-cn/web/css/shape-image-threshold/index.html +++ b/files/zh-cn/web/css/shape-image-threshold/index.html @@ -42,7 +42,7 @@ shape-image-threshold: unset; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="范例">范例</h2> diff --git a/files/zh-cn/web/css/shape-margin/index.html b/files/zh-cn/web/css/shape-margin/index.html index 3b3ea4ef4d..1590690856 100644 --- a/files/zh-cn/web/css/shape-margin/index.html +++ b/files/zh-cn/web/css/shape-margin/index.html @@ -45,7 +45,7 @@ shape-margin: unset; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="范例">范例</h2> diff --git a/files/zh-cn/web/css/shape-outside/index.html b/files/zh-cn/web/css/shape-outside/index.html index 57dc0676ac..a6f40b4848 100644 --- a/files/zh-cn/web/css/shape-outside/index.html +++ b/files/zh-cn/web/css/shape-outside/index.html @@ -79,7 +79,7 @@ shape-outside: unset; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="插值">插值</h2> diff --git a/files/zh-cn/web/css/tab-size/index.html b/files/zh-cn/web/css/tab-size/index.html index ee314a6438..856513a8c4 100644 --- a/files/zh-cn/web/css/tab-size/index.html +++ b/files/zh-cn/web/css/tab-size/index.html @@ -39,7 +39,7 @@ tab-size: unset; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{CSSSyntax}}</pre> +{{CSSSyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/table-layout/index.html b/files/zh-cn/web/css/table-layout/index.html index a6b0b99c0a..cdcb6bc886 100644 --- a/files/zh-cn/web/css/table-layout/index.html +++ b/files/zh-cn/web/css/table-layout/index.html @@ -50,8 +50,7 @@ table-layout: unset; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}} -</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/text-align-last/index.html b/files/zh-cn/web/css/text-align-last/index.html index df3731f947..a7bc64af3c 100644 --- a/files/zh-cn/web/css/text-align-last/index.html +++ b/files/zh-cn/web/css/text-align-last/index.html @@ -62,7 +62,7 @@ text-align-last: unset; <h3 id="语法_2">语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/text-align/index.html b/files/zh-cn/web/css/text-align/index.html index 4ddd3c5614..b18ab96e5b 100644 --- a/files/zh-cn/web/css/text-align/index.html +++ b/files/zh-cn/web/css/text-align/index.html @@ -203,7 +203,7 @@ p { <h3 id="指示语法" style="line-height: 24px;">指示语法</h3> -<pre class="syntaxbox notranslate" style="font-size: 14px; white-space: normal;">{{csssyntax("text-align")}}</pre> +{{csssyntax("text-align")}} <h2 id="示例" style="margin-bottom: 20px; line-height: 30px;">示例</h2> diff --git a/files/zh-cn/web/css/text-decoration-color/index.html b/files/zh-cn/web/css/text-decoration-color/index.html index d104d9ace0..69ab4fadfd 100644 --- a/files/zh-cn/web/css/text-decoration-color/index.html +++ b/files/zh-cn/web/css/text-decoration-color/index.html @@ -46,7 +46,7 @@ text-decoration-color: unset; <h3 id="格式化语法">格式化语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/text-decoration-line/index.html b/files/zh-cn/web/css/text-decoration-line/index.html index 7b8e74abf6..7615ef91a0 100644 --- a/files/zh-cn/web/css/text-decoration-line/index.html +++ b/files/zh-cn/web/css/text-decoration-line/index.html @@ -50,7 +50,7 @@ text-decoration-line: unset; <h3 id="格式化语法">格式化语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/text-decoration-skip/index.html b/files/zh-cn/web/css/text-decoration-skip/index.html index 72fcfb490c..99b6a2b207 100644 --- a/files/zh-cn/web/css/text-decoration-skip/index.html +++ b/files/zh-cn/web/css/text-decoration-skip/index.html @@ -55,7 +55,7 @@ text-decoration-skip: unset; <h3 id="语法格式">语法格式</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/text-decoration-style/index.html b/files/zh-cn/web/css/text-decoration-style/index.html index 0285e527f8..8e59a0350b 100644 --- a/files/zh-cn/web/css/text-decoration-style/index.html +++ b/files/zh-cn/web/css/text-decoration-style/index.html @@ -55,7 +55,7 @@ text-decoration-style: unset; <h3 id="格式化语法">格式化语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/text-decoration-thickness/index.html b/files/zh-cn/web/css/text-decoration-thickness/index.html index 41179d7438..4c2a07a01e 100644 --- a/files/zh-cn/web/css/text-decoration-thickness/index.html +++ b/files/zh-cn/web/css/text-decoration-thickness/index.html @@ -47,7 +47,7 @@ text-decoration-thickness: unset;</pre> <h2 id="Formal_syntax">Formal syntax</h2> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/text-decoration/index.html b/files/zh-cn/web/css/text-decoration/index.html index 5bad8be5df..580f75fdf5 100644 --- a/files/zh-cn/web/css/text-decoration/index.html +++ b/files/zh-cn/web/css/text-decoration/index.html @@ -34,8 +34,7 @@ translation_of: Web/CSS/text-decoration <h3 id="语法形式">语法形式</h3> -<pre class="syntaxbox">{{csssyntax("text-decoration")}} -</pre> +{{csssyntax("text-decoration")}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/text-indent/index.html b/files/zh-cn/web/css/text-indent/index.html index 75314be041..f7d4355d3b 100644 --- a/files/zh-cn/web/css/text-indent/index.html +++ b/files/zh-cn/web/css/text-indent/index.html @@ -45,8 +45,7 @@ text-indent: unset;</code></pre> <dl> <dt> - <pre class="syntaxbox">{{csssyntax}} -</pre> + {{csssyntax}} </dt> </dl> diff --git a/files/zh-cn/web/css/text-justify/index.html b/files/zh-cn/web/css/text-justify/index.html index db387c6f37..ad13d4ef7a 100644 --- a/files/zh-cn/web/css/text-justify/index.html +++ b/files/zh-cn/web/css/text-justify/index.html @@ -45,7 +45,7 @@ text-justify: distribute; /* 已被废除,不提倡使用 */ <h3 id="语法_2">语法</h3> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/text-orientation/index.html b/files/zh-cn/web/css/text-orientation/index.html index 34decf78f3..7014345a02 100644 --- a/files/zh-cn/web/css/text-orientation/index.html +++ b/files/zh-cn/web/css/text-orientation/index.html @@ -54,7 +54,7 @@ text-orientation: unset; <h2 id="形式化语法">形式化语法</h2> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/css/text-overflow/index.html b/files/zh-cn/web/css/text-overflow/index.html index d92f8d3766..2b648418eb 100644 --- a/files/zh-cn/web/css/text-overflow/index.html +++ b/files/zh-cn/web/css/text-overflow/index.html @@ -60,7 +60,7 @@ text-overflow: unset;</code></pre> <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox notranslate">{{csssyntax("text-overflow")}}</pre> +{{csssyntax("text-overflow")}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/text-shadow/index.html b/files/zh-cn/web/css/text-shadow/index.html index 7522026848..1b24092603 100644 --- a/files/zh-cn/web/css/text-shadow/index.html +++ b/files/zh-cn/web/css/text-shadow/index.html @@ -58,7 +58,7 @@ text-shadow: unset;</pre> <h3 id="形式化语法">形式化语法</h3> -<pre>{{csssyntax("text-shadow")}}</pre> +{{csssyntax("text-shadow")}} <h2 id="Examples" name="Examples">例子</h2> diff --git a/files/zh-cn/web/css/text-size-adjust/index.html b/files/zh-cn/web/css/text-size-adjust/index.html index c910ead2db..38de57d1da 100644 --- a/files/zh-cn/web/css/text-size-adjust/index.html +++ b/files/zh-cn/web/css/text-size-adjust/index.html @@ -58,7 +58,7 @@ text-size-adjust: unset; <h3 id="形式化语法">形式化语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="规范">规范</h2> diff --git a/files/zh-cn/web/css/text-transform/index.html b/files/zh-cn/web/css/text-transform/index.html index dbf4a988bd..6939245741 100644 --- a/files/zh-cn/web/css/text-transform/index.html +++ b/files/zh-cn/web/css/text-transform/index.html @@ -80,7 +80,7 @@ text-transform: unset;</code></pre> <h3 id="正式语法">正式语法</h3> -<pre>{{csssyntax}}</pre> +{{csssyntax}} <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/css/text-underline-position/index.html b/files/zh-cn/web/css/text-underline-position/index.html index 6e85187f64..393c6b7b0a 100644 --- a/files/zh-cn/web/css/text-underline-position/index.html +++ b/files/zh-cn/web/css/text-underline-position/index.html @@ -50,7 +50,7 @@ text-underline-position: unset; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/touch-action/index.html b/files/zh-cn/web/css/touch-action/index.html index 40cbd7136d..760e5566a3 100644 --- a/files/zh-cn/web/css/touch-action/index.html +++ b/files/zh-cn/web/css/touch-action/index.html @@ -69,7 +69,7 @@ touch-action: unset; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/transform-box/index.html b/files/zh-cn/web/css/transform-box/index.html index c92254530b..b2ba704cf3 100644 --- a/files/zh-cn/web/css/transform-box/index.html +++ b/files/zh-cn/web/css/transform-box/index.html @@ -39,7 +39,7 @@ transform-box: unset; <h3 id="Formal_syntax">Formal syntax</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="Specifications">Specifications</h2> diff --git a/files/zh-cn/web/css/transform-origin/index.html b/files/zh-cn/web/css/transform-origin/index.html index c9e578554c..bb530b4db7 100644 --- a/files/zh-cn/web/css/transform-origin/index.html +++ b/files/zh-cn/web/css/transform-origin/index.html @@ -129,7 +129,7 @@ transform-origin: unset; <h3 id="正式语法">正式语法</h3> -<pre>{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/transform-style/index.html b/files/zh-cn/web/css/transform-style/index.html index c459a312d4..592621b439 100644 --- a/files/zh-cn/web/css/transform-style/index.html +++ b/files/zh-cn/web/css/transform-style/index.html @@ -38,7 +38,7 @@ transform-style: unset; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="规范">规范</h2> diff --git a/files/zh-cn/web/css/transform/index.html b/files/zh-cn/web/css/transform/index.html index e956ec6f90..13851fb44a 100644 --- a/files/zh-cn/web/css/transform/index.html +++ b/files/zh-cn/web/css/transform/index.html @@ -69,8 +69,7 @@ transform: unset; <h3 id="语法格式">语法格式</h3> -<pre>{{csssyntax}} -</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/transition-delay/index.html b/files/zh-cn/web/css/transition-delay/index.html index e573d84328..3492c90d67 100644 --- a/files/zh-cn/web/css/transition-delay/index.html +++ b/files/zh-cn/web/css/transition-delay/index.html @@ -41,7 +41,7 @@ transition-delay: unset; <h3 id="语法形式">语法形式</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="举例">举例</h2> diff --git a/files/zh-cn/web/css/transition-duration/index.html b/files/zh-cn/web/css/transition-duration/index.html index 55f561a7a0..41c23b5f25 100644 --- a/files/zh-cn/web/css/transition-duration/index.html +++ b/files/zh-cn/web/css/transition-duration/index.html @@ -36,7 +36,7 @@ transition-duration: unset; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/transition-property/index.html b/files/zh-cn/web/css/transition-property/index.html index 90df96ad89..36a3372c14 100644 --- a/files/zh-cn/web/css/transition-property/index.html +++ b/files/zh-cn/web/css/transition-property/index.html @@ -48,7 +48,7 @@ transition-property: unset; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/transition/index.html b/files/zh-cn/web/css/transition/index.html index 5b7a5cfc2c..d22b46c986 100644 --- a/files/zh-cn/web/css/transition/index.html +++ b/files/zh-cn/web/css/transition/index.html @@ -65,7 +65,7 @@ transition: unset; <h3 id="标准语法">标准语法</h3> -<pre>{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/translate/index.html b/files/zh-cn/web/css/translate/index.html index d7b88f4ada..117a42ed4f 100644 --- a/files/zh-cn/web/css/translate/index.html +++ b/files/zh-cn/web/css/translate/index.html @@ -46,7 +46,7 @@ translate: 50% 105px 5rem; <h3 id="形式语法">形式语法</h3> -<pre class="syntaxbox notranslate">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/unicode-bidi/index.html b/files/zh-cn/web/css/unicode-bidi/index.html index 0dc0472b59..0ba9aa25d0 100644 --- a/files/zh-cn/web/css/unicode-bidi/index.html +++ b/files/zh-cn/web/css/unicode-bidi/index.html @@ -51,7 +51,7 @@ unicode-bidi: unset; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="例子">例子</h2> diff --git a/files/zh-cn/web/css/user-select/index.html b/files/zh-cn/web/css/user-select/index.html index 8481741c5c..4496a80c11 100644 --- a/files/zh-cn/web/css/user-select/index.html +++ b/files/zh-cn/web/css/user-select/index.html @@ -80,7 +80,7 @@ user-select: unset; <h3 id="形式化语法">形式化语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/var()/index.html b/files/zh-cn/web/css/var()/index.html index 25af709130..281a7dcf48 100644 --- a/files/zh-cn/web/css/var()/index.html +++ b/files/zh-cn/web/css/var()/index.html @@ -20,8 +20,7 @@ translation_of: Web/CSS/var() <p>方法的第一个参数是要替换的自定义属性的名称。函数的可选第二个参数用作回退值。如果第一个参数引用的自定义属性无效,则该函数将使用第二个值。</p> -<pre class="syntaxbox notranslate">{{csssyntax}} -</pre> +{{csssyntax}} <div class="note"> <p>注意:自定义属性的回退值允许使用逗号。例如, <code>var(--foo, red, blue)</code> 将<code>red, blue</code>同时指定为回退值;即是说任何在第一个逗号之后到函数结尾前的值都会被考虑为回退值。</p> diff --git a/files/zh-cn/web/css/vertical-align/index.html b/files/zh-cn/web/css/vertical-align/index.html index e07185a92e..df895fe1cb 100644 --- a/files/zh-cn/web/css/vertical-align/index.html +++ b/files/zh-cn/web/css/vertical-align/index.html @@ -185,7 +185,7 @@ vertical-align: unset; <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/widows/index.html b/files/zh-cn/web/css/widows/index.html index 9b9d2d8d26..ab1d1be819 100644 --- a/files/zh-cn/web/css/widows/index.html +++ b/files/zh-cn/web/css/widows/index.html @@ -36,7 +36,7 @@ widows: unset; <h2 id="Formal_syntax">Formal syntax</h2> -<pre class="syntaxbox notranslate">{{CSSSyntax}}</pre> +{{CSSSyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/width/index.html b/files/zh-cn/web/css/width/index.html index 3f687f1dde..9bcfdb63af 100644 --- a/files/zh-cn/web/css/width/index.html +++ b/files/zh-cn/web/css/width/index.html @@ -70,7 +70,7 @@ width: unset; <h3 id="形式化语法">形式化语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/word-break/index.html b/files/zh-cn/web/css/word-break/index.html index b372b6b594..07e862e86a 100644 --- a/files/zh-cn/web/css/word-break/index.html +++ b/files/zh-cn/web/css/word-break/index.html @@ -51,8 +51,7 @@ word-break: unset;</pre> <h2 id="正式语法">正式语法</h2> -<pre class="syntaxbox notranslate">{{csssyntax}} -</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/word-spacing/index.html b/files/zh-cn/web/css/word-spacing/index.html index dd9f267070..914fa1a7d6 100644 --- a/files/zh-cn/web/css/word-spacing/index.html +++ b/files/zh-cn/web/css/word-spacing/index.html @@ -44,7 +44,7 @@ word-spacing: inherit;</code></pre> <p><a class="syntaxbox-help icon-only" href="https://developer.mozilla.org/docs/Web/CSS/Value_definition_syntax" lang="en" style="margin: -4px 0px 0px -1.1em; padding: 0px; border: 0px; color: rgb(0, 149, 221); text-decoration: none; height: 1.2em; float: left; font-size: 20px; width: 1.1em; opacity: 0; overflow: hidden; position: relative; text-align: center; font-family: 'Open Sans', Arial, sans-serif; background-color: rgb(255, 255, 255);"><span style="border: 0px; margin: 0px; padding: 0px;">How to read CSS syntax.</span></a></p> -<pre class="syntaxbox" style="margin-top: 0px; margin-bottom: 20px; padding: 15px; border-width: 0px 0px 0px 6px; border-left-style: solid; font-size: 14px; line-height: 19px; color: rgb(77, 78, 83); overflow: auto; font-family: Consolas, Monaco, 'Andale Mono', monospace; white-space: normal; background: rgb(221, 228, 233);">{{csssyntax("word-spacing")}}</pre> +{{csssyntax("word-spacing")}} <h2 id="Examples" name="Examples" style="margin: 0px 0px 20px; padding: 0px; border: 0px; word-wrap: break-word; font-family: 'Open Sans', Arial, sans-serif; line-height: 1; font-size: 2.14285714285714rem; letter-spacing: -1px; color: rgb(77, 78, 83); background-color: rgb(255, 255, 255);">Examples</h2> diff --git a/files/zh-cn/web/css/writing-mode/index.html b/files/zh-cn/web/css/writing-mode/index.html index 0f151b29ea..ea47547767 100644 --- a/files/zh-cn/web/css/writing-mode/index.html +++ b/files/zh-cn/web/css/writing-mode/index.html @@ -53,7 +53,7 @@ writing-mode: unset;</pre> <h3 id="正式语法">正式语法</h3> -<pre class="syntaxbox">{{csssyntax}}</pre> +{{csssyntax}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/css/z-index/index.html b/files/zh-cn/web/css/z-index/index.html index 54ec0c54f3..6b164dbee5 100644 --- a/files/zh-cn/web/css/z-index/index.html +++ b/files/zh-cn/web/css/z-index/index.html @@ -51,8 +51,7 @@ z-index: unset;</pre> <h3 id="格式化语法">格式化语法</h3> -<pre class="syntaxbox notranslate">{{csssyntax("z-index")}} -</pre> +{{csssyntax("z-index")}} <h2 id="示例">示例</h2> diff --git a/files/zh-cn/web/html/element/dd/index.html b/files/zh-cn/web/html/element/dd/index.html index fae18f6334..0810f9908c 100644 --- a/files/zh-cn/web/html/element/dd/index.html +++ b/files/zh-cn/web/html/element/dd/index.html @@ -49,7 +49,7 @@ translation_of: Web/HTML/Element/dd <h2 id="示例">示例</h2> -<p>示例请看<a href="/zh-CN/docs/HTML/Element/dl#examples"><dl> 的示例</a>。</p> +<p>示例请看<a href="/zh-CN/docs/Web/HTML/Element/dl#examples"><dl> 的示例</a>。</p> <h2 id="Specifications" name="Specifications">规范</h2> |