diff options
author | yuchuan <1738733078@qq.com> | 2022-03-15 21:42:18 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-15 21:42:18 +0800 |
commit | bcfbbe117eab904ffc03726209b7a3e42a52eb5f (patch) | |
tree | 0572dd848a8ab2ba6d094a7089850aab3d1bf379 /files/zh-cn/web/html | |
parent | 42c588ef3ded2d0cc2f4a71d5d5f90a2c66e534e (diff) | |
download | translated-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)
Diffstat (limited to 'files/zh-cn/web/html')
-rw-r--r-- | files/zh-cn/web/html/element/hr/index.html | 2 | ||||
-rw-r--r-- | files/zh-cn/web/html/element/iframe/index.html | 4 | ||||
-rw-r--r-- | files/zh-cn/web/html/element/input/date/index.html | 2 | ||||
-rw-r--r-- | files/zh-cn/web/html/element/input/index.html | 2 | ||||
-rw-r--r-- | files/zh-cn/web/html/element/pre/index.html | 2 | ||||
-rw-r--r-- | files/zh-cn/web/html/element/textarea/index.html | 4 | ||||
-rw-r--r-- | files/zh-cn/web/html/element/u/index.html | 4 | ||||
-rw-r--r-- | files/zh-cn/web/html/global_attributes/itemscope/index.html | 2 |
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><p> +<pre class="brush: html notranslate"><code><p> 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><iframe src="https://mdn-samples.mozilla.org/snippets/html/iframe-simple-contents.html" title="iframe example 1" width="400" height="300"> +<pre class="brush: html"><code><iframe src="https://mdn-samples.mozilla.org/snippets/html/iframe-simple-contents.html" title="iframe example 1" width="400" height="300"> <p>Your browser does not support iframes.</p> </iframe></code></pre> @@ -182,7 +182,7 @@ translation_of: Web/HTML/Element/iframe <h4 id="HTML_2">HTML</h4> -<pre><code><base target="_blank"> +<pre class="brush: html"><code><base target="_blank"> <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><input type="date"></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><datalist></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><datalist id="colorsxx"> +<pre class="brush: html"><datalist id="colorsxx"> <option>#ff0000</option> <option>#ee0000</option> <option>#dd0000</option> 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><p>Using CSS to change the font color is easy.</p> +<pre class="brush: html"><code><p>Using CSS to change the font color is easy.</p> <pre> 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><textarea name="textarea" +<pre class="brush: html"><textarea name="textarea" rows="5" cols="30" placeholder="Comment text."></textarea></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><p>This paragraph includes a <u class="spelling">wrnogly</u> +<pre class="brush: html notranslate"><code><p>This paragraph includes a <u class="spelling">wrnogly</u> spelled word.</p></code></pre> <p>在 HTML 中,我们看到 <code><u></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: <br> <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> |