aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryuchuan <1738733078@qq.com>2022-03-15 21:42:18 +0800
committerGitHub <noreply@github.com>2022-03-15 21:42:18 +0800
commitbcfbbe117eab904ffc03726209b7a3e42a52eb5f (patch)
tree0572dd848a8ab2ba6d094a7089850aab3d1bf379
parent42c588ef3ded2d0cc2f4a71d5d5f90a2c66e534e (diff)
downloadtranslated-content-bcfbbe117eab904ffc03726209b7a3e42a52eb5f.tar.gz
translated-content-bcfbbe117eab904ffc03726209b7a3e42a52eb5f.tar.bz2
translated-content-bcfbbe117eab904ffc03726209b7a3e42a52eb5f.zip
fix zh-cn/docs/web/html/* pages with an EmbedLiveSample error and html codeblock style #2846 (#4525)
-rw-r--r--files/zh-cn/web/html/element/hr/index.html2
-rw-r--r--files/zh-cn/web/html/element/iframe/index.html4
-rw-r--r--files/zh-cn/web/html/element/input/date/index.html2
-rw-r--r--files/zh-cn/web/html/element/input/index.html2
-rw-r--r--files/zh-cn/web/html/element/pre/index.html2
-rw-r--r--files/zh-cn/web/html/element/textarea/index.html4
-rw-r--r--files/zh-cn/web/html/element/u/index.html4
-rw-r--r--files/zh-cn/web/html/global_attributes/itemscope/index.html2
8 files changed, 11 insertions, 11 deletions
diff --git a/files/zh-cn/web/html/element/hr/index.html b/files/zh-cn/web/html/element/hr/index.html
index 0c7690f993..33ce7ccadb 100644
--- a/files/zh-cn/web/html/element/hr/index.html
+++ b/files/zh-cn/web/html/element/hr/index.html
@@ -53,7 +53,7 @@ translation_of: Web/HTML/Element/hr
<h3 id="HTML">HTML</h3>
-<pre class="notranslate"><code>&lt;p&gt;
+<pre class="brush: html notranslate"><code>&lt;p&gt;
This is the first paragraph of text.
This is the first paragraph of text.
This is the first paragraph of text.
diff --git a/files/zh-cn/web/html/element/iframe/index.html b/files/zh-cn/web/html/element/iframe/index.html
index ff3a806853..e92b66b1c4 100644
--- a/files/zh-cn/web/html/element/iframe/index.html
+++ b/files/zh-cn/web/html/element/iframe/index.html
@@ -168,7 +168,7 @@ translation_of: Web/HTML/Element/iframe
<h4 id="HTML">HTML</h4>
-<pre><code>&lt;iframe src="https://mdn-samples.mozilla.org/snippets/html/iframe-simple-contents.html" title="iframe example 1" width="400" height="300"&gt;
+<pre class="brush: html"><code>&lt;iframe src="https://mdn-samples.mozilla.org/snippets/html/iframe-simple-contents.html" title="iframe example 1" width="400" height="300"&gt;
&lt;p&gt;Your browser does not support iframes.&lt;/p&gt;
&lt;/iframe&gt;</code></pre>
@@ -182,7 +182,7 @@ translation_of: Web/HTML/Element/iframe
<h4 id="HTML_2">HTML</h4>
-<pre><code>&lt;base target="_blank"&gt;
+<pre class="brush: html"><code>&lt;base target="_blank"&gt;
&lt;iframe id="Example2"
title="Example2"
width="400"
diff --git a/files/zh-cn/web/html/element/input/date/index.html b/files/zh-cn/web/html/element/input/date/index.html
index 9f7cf097a1..850296ff34 100644
--- a/files/zh-cn/web/html/element/input/date/index.html
+++ b/files/zh-cn/web/html/element/input/date/index.html
@@ -235,7 +235,7 @@ input:valid + span:after {
<p>在这个例子中,我们创建了两组用于选择日期的 UI 元素: 一个本地 <code>&lt;input type="date"&gt;</code> 选择器 和 一组三个 {{htmlelement("select")}} 元素用于选择不支持本地输入的旧浏览器中的日期。</p>
-<p>{{ EmbedLiveSample('Examples', 600, 100) }}</p>
+<p>{{ EmbedLiveSample('例子', 600, 100) }}</p>
<h3 id="HTML">HTML</h3>
diff --git a/files/zh-cn/web/html/element/input/index.html b/files/zh-cn/web/html/element/input/index.html
index 2b95e433f8..7a0eec9474 100644
--- a/files/zh-cn/web/html/element/input/index.html
+++ b/files/zh-cn/web/html/element/input/index.html
@@ -629,7 +629,7 @@ translation_of: Web/HTML/Element/input
<p>The values of the list attribute is the {{domxref("Element.id", "id")}} of a {{HTMLElement("datalist")}} element located in the same document. The <code>&lt;datalist&gt;</code>  provides a list of predefined values to suggest to the user for this input. Any values in the list that are not compatible with the {{htmlattrxref("type", "input")}} are not included in the suggested options.  The values provided are suggestions, not requirements: users can select from this predefined list or provide a different value.</p>
-<pre>&lt;datalist id="colorsxx"&gt;
+<pre class="brush: html">&lt;datalist id="colorsxx"&gt;
&lt;option&gt;#ff0000&lt;/option&gt;
&lt;option&gt;#ee0000&lt;/option&gt;
&lt;option&gt;#dd0000&lt;/option&gt;
diff --git a/files/zh-cn/web/html/element/pre/index.html b/files/zh-cn/web/html/element/pre/index.html
index e01cba7a2c..b115b5a8d3 100644
--- a/files/zh-cn/web/html/element/pre/index.html
+++ b/files/zh-cn/web/html/element/pre/index.html
@@ -65,7 +65,7 @@ translation_of: Web/HTML/Element/pre
<h3 id="HTML">HTML</h3>
-<pre><code>&lt;p&gt;Using CSS to change the font color is easy.&lt;/p&gt;
+<pre class="brush: html"><code>&lt;p&gt;Using CSS to change the font color is easy.&lt;/p&gt;
&lt;pre&gt;
body {
color: red;
diff --git a/files/zh-cn/web/html/element/textarea/index.html b/files/zh-cn/web/html/element/textarea/index.html
index fa37b65db3..02d8cbed82 100644
--- a/files/zh-cn/web/html/element/textarea/index.html
+++ b/files/zh-cn/web/html/element/textarea/index.html
@@ -157,11 +157,11 @@ textarea:valid {
<p>This example has a placeholder set. Notice how it disappears when you start typing into the box.</p>
-<pre>&lt;textarea name="textarea"
+<pre class="brush: html">&lt;textarea name="textarea"
rows="5" cols="30"
placeholder="Comment text."&gt;&lt;/textarea&gt;</pre>
-<p>{{ EmbedLiveSample('Placeholder','600','80') }}</p>
+<p>{{ EmbedLiveSample('占位符','600','80') }}</p>
<div class="blockIndicator note">
<p><strong>Note:</strong> Placeholders should only be used to show an example of the type of data that should be entered into a form; they are <em>not</em> a substitute for a proper {{HTMLElement("label")}} element tied to the input. See {{SectionOnPage("/en-US/docs/Web/HTML/Element/input", "Labels and placeholders")}} for a full explanation.</p>
diff --git a/files/zh-cn/web/html/element/u/index.html b/files/zh-cn/web/html/element/u/index.html
index bb2974f5cc..cb1be7fa22 100644
--- a/files/zh-cn/web/html/element/u/index.html
+++ b/files/zh-cn/web/html/element/u/index.html
@@ -91,14 +91,14 @@ translation_of: Web/HTML/Element/u
<h4 id="HTML">HTML</h4>
-<pre class="notranslate"><code>&lt;p&gt;This paragraph includes a &lt;u class="spelling"&gt;wrnogly&lt;/u&gt;
+<pre class="brush: html notranslate"><code>&lt;p&gt;This paragraph includes a &lt;u class="spelling"&gt;wrnogly&lt;/u&gt;
spelled word.&lt;/p&gt;</code></pre>
<p>在 HTML 中,我们看到 <code>&lt;u&gt;</code> 使用了一个类 <code>spelling</code>,用于表示 “wrongly” 一词的拼写错误。</p>
<h4 id="CSS">CSS</h4>
-<pre class="notranslate"><code>u.spelling {
+<pre class="brush: css notranslate"><code>u.spelling {
text-decoration: red wavy underline;
}</code></pre>
diff --git a/files/zh-cn/web/html/global_attributes/itemscope/index.html b/files/zh-cn/web/html/global_attributes/itemscope/index.html
index 5fd51b998a..62c6e70fb1 100644
--- a/files/zh-cn/web/html/global_attributes/itemscope/index.html
+++ b/files/zh-cn/web/html/global_attributes/itemscope/index.html
@@ -119,7 +119,7 @@ Directions: &lt;br&gt;
<p>下面例子是上述例子的补充:</p>
-<p>{{EmbedLiveSample('Example', '500', '550', '', 'Web/HTML/Global_attributes/itemscope')}}</p>
+<p>{{EmbedLiveSample('示例', '500', '550', '', 'Web/HTML/Global_attributes/itemscope')}}</p>
<h4 id="结构化数据_2">结构化数据</h4>