From bcfbbe117eab904ffc03726209b7a3e42a52eb5f Mon Sep 17 00:00:00 2001 From: yuchuan <1738733078@qq.com> Date: Tue, 15 Mar 2022 21:42:18 +0800 Subject: fix zh-cn/docs/web/html/* pages with an EmbedLiveSample error and html codeblock style #2846 (#4525) --- files/zh-cn/web/html/element/hr/index.html | 2 +- files/zh-cn/web/html/element/iframe/index.html | 4 ++-- files/zh-cn/web/html/element/input/date/index.html | 2 +- files/zh-cn/web/html/element/input/index.html | 2 +- files/zh-cn/web/html/element/pre/index.html | 2 +- files/zh-cn/web/html/element/textarea/index.html | 4 ++-- files/zh-cn/web/html/element/u/index.html | 4 ++-- 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

HTML

-
<p>
+
<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
 
 

HTML

-
<iframe src="https://mdn-samples.mozilla.org/snippets/html/iframe-simple-contents.html" title="iframe example 1" width="400" height="300">
+
<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>
@@ -182,7 +182,7 @@ translation_of: Web/HTML/Element/iframe

HTML

-
<base target="_blank">
+
<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 {
 
 

在这个例子中,我们创建了两组用于选择日期的 UI 元素: 一个本地 <input type="date"> 选择器 和 一组三个 {{htmlelement("select")}} 元素用于选择不支持本地输入的旧浏览器中的日期。

-

{{ EmbedLiveSample('Examples', 600, 100) }}

+

{{ EmbedLiveSample('例子', 600, 100) }}

HTML

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

The values of the list attribute is the {{domxref("Element.id", "id")}} of a {{HTMLElement("datalist")}} element located in the same document. The <datalist>  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.

-
<datalist id="colorsxx">
+
<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
 
 

HTML

-
<p>Using CSS to change the font color is easy.</p>
+
<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 {
 
 

This example has a placeholder set. Notice how it disappears when you start typing into the box.

-
<textarea name="textarea"
+
<textarea name="textarea"
    rows="5" cols="30"
    placeholder="Comment text."></textarea>
-

{{ EmbedLiveSample('Placeholder','600','80') }}

+

{{ EmbedLiveSample('占位符','600','80') }}

Note: Placeholders should only be used to show an example of the type of data that should be entered into a form; they are not 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.

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

HTML

-
<p>This paragraph includes a <u class="spelling">wrnogly</u>
+
<p>This paragraph includes a <u class="spelling">wrnogly</u>
 spelled word.</p>

在 HTML 中,我们看到 <u> 使用了一个类 spelling,用于表示 “wrongly” 一词的拼写错误。

CSS

-
u.spelling {
+
u.spelling {
   text-decoration: red wavy underline;
 }
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>

下面例子是上述例子的补充:

-

{{EmbedLiveSample('Example', '500', '550', '', 'Web/HTML/Global_attributes/itemscope')}}

+

{{EmbedLiveSample('示例', '500', '550', '', 'Web/HTML/Global_attributes/itemscope')}}

结构化数据

-- cgit v1.2.3-54-g00ecf