Skip to content

Commit

Permalink
prue <h2> - <h5> tags for zh-CN (Part 1) (#6515)
Browse files Browse the repository at this point in the history
  • Loading branch information
yin1999 authored Jun 26, 2022
1 parent 768a869 commit 243417a
Show file tree
Hide file tree
Showing 200 changed files with 666 additions and 666 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<div>{{GamesSidebar}}</div>

<div>
<h2 style="line-height: 30px;" id="优点">优点</h2>
<h2 id="优点">优点</h2>

<ol>
<li>使用 HTML5 构建的游戏可以在智能手机,平板电脑,个人电脑和智能电视上工作。</li>
Expand All @@ -22,7 +22,7 @@ <h2 style="line-height: 30px;" id="优点">优点</h2>
<li>玩家可随时随地玩游戏。</li>
</ol>

<h2 style="line-height: 30px;" id="网络技术">网络技术</h2>
<h2 id="网络技术">网络技术</h2>
</div>

<div> </div>
Expand Down
6 changes: 3 additions & 3 deletions files/zh-cn/glossary/base64/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ <h4 id="编码尺寸增加">编码尺寸增加</h4>
<tbody>
<tr>
<td>
<h2 class="Documentation" id="Documentation" name="Documentation">文档</h2>
<h2 id="Documentation">文档</h2>

<dl>
<dt><a href="/zh-CN/docs/Web/HTTP/Basics_of_HTTP/Data_URLs"><code>data</code> URIs</a></dt>
Expand All @@ -58,15 +58,15 @@ <h2 class="Documentation" id="Documentation" name="Documentation">文档</h2>

</td>
<td>
<h2 class="Tools" id="Tools" name="Tools">工具</h2>
<h2 id="Tools">工具</h2>

<ul>
<li><a href="#Solution_.232_.E2.80.93_rewriting_atob()_and_btoa()_using_TypedArrays_and_UTF-8">Rewriting <code>atob()</code> and <code>btoa()</code> using <code>TypedArray</code>s and UTF-8</a></li>
<li><a href="/zh-CN/docs/Web/JavaScript/Typed_arrays/StringView"><code>StringView</code> – a C-like representation of strings based on typed arrays</a></li>
</ul>


<h2 class="Related_Topics" id="Related_Topics" name="Related_Topics">相关文章</h2>
<h2 id="Related_Topics">相关文章</h2>

<ul>
<li><a href="/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer"><code>ArrayBuffer</code></a></li>
Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/glossary/decryption/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<h2 id="了解更多">了解更多</h2>

<h3 class="highlight-spanned" id="技术索引">技术索引</h3>
<h3 id="技术索引">技术索引</h3>

<ul>
<li><a href="/zh-CN/docs/Encryption_and_Decryption">Encryption and Decryption</a></li>
Expand Down
6 changes: 3 additions & 3 deletions files/zh-cn/glossary/google_chrome/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
---
<p>Chrome 浏览器是 Google 开发的一个免费网络{{glossary("浏览器")}}. 它基于开源项目 <a href="https://www.chromium.org/">Chromium</a>。在 <a href="https://code.google.com/p/chromium/wiki/ChromiumBrowserVsGoogleChrome">Chromium wiki</a> 中描述了它们之间的差异。Chrome 维护使用自己的渲染引擎:开源引擎{{glossary("WebKit")}}中 WebCore 组件的一个分支 {{glossary("Blink")}}  。注意:IOS 版本的 Chrome 使用了 IOS 平台的渲染引擎,而非 {{glossary("Blink")}}。</p>

<h2 id="学习更多" style="line-height: 30px;">学习更多</h2>
<h2 id="学习更多">学习更多</h2>

<h3 id="一般知识" style="line-height: 24px;">一般知识</h3>
<h3 id="一般知识">一般知识</h3>

<ul>
<li>{{interwiki("wikipedia", "Google Chrome", "Google Chrome")}} 维基百科</li>
</ul>

<h3 id="对于使用者" style="line-height: 24px;">对于使用者</h3>
<h3 id="对于使用者">对于使用者</h3>

<p>如果您只想使用 Chrome,请点击下面的链接。</p>

Expand Down
6 changes: 3 additions & 3 deletions files/zh-cn/glossary/localization/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<tbody>
<tr>
<td>
<h2 class="Documentation" id="Documentation">Documentation</h2>
<h2 id="Documentation">Documentation</h2>
<dl>
<dt>
<a href="/zh-CN/docs/Localization_Quick_Start_Guide">Localization Quick Start Guide</a></dt>
Expand Down Expand Up @@ -42,11 +42,11 @@ <h2 class="Documentation" id="Documentation">Documentation</h2>
</dl>
</td>
<td>
<h2 class="Community" id="Community">Community</h2>
<h2 id="Community">Community</h2>
<ul>
<li><a href="https://wiki.mozilla.org/L10n">Community</a></li>
</ul>
<h2 class="Related_Topics" id="Related_Topics" name="Related_Topics">Related Topics</h2>
<h2 id="Related_Topics">Related Topics</h2>
<ul>
<li><a href="/zh-CN/docs/Extensions">Extensions</a>, <a href="/zh-CN/docs/XUL">XUL</a></li>
</ul>
Expand Down
6 changes: 3 additions & 3 deletions files/zh-cn/glossary/microsoft_internet_explorer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@

<h2 id="了解更多">了解更多</h2>

<h3 id="常识" style="line-height: 24px; font-size: 1.71428571428571rem;">常识</h3>
<h3 id="常识">常识</h3>

<ul>
<li>{{interwiki("wikipedia", "Internet Explorer", "Internet Explorer")}} on Wikipedia</li>
<li>{{interwiki("wikipedia", "History of Internet Explorer", "History of Internet Explorer")}} on Wikipedia</li>
<li>{{interwiki("wikipedia", "Internet Explorer versions", "Internet Explorer versions")}} on Wikipedia</li>
</ul>

<h3 id="了解_Internet_Explorer" style="line-height: 24px; font-size: 1.71428571428571rem;">了解 Internet Explorer</h3>
<h3 id="了解_Internet_Explorer">了解 Internet Explorer</h3>

<ul>
<li><a href="https://windows.microsoft.com/en-us/internet-explorer/download-ie">http://windows.microsoft.com/en-us/internet-explorer/download-ie</a></li>
Expand All @@ -33,7 +33,7 @@ <h3 id="了解_Internet_Explorer" style="line-height: 24px; font-size: 1.7142857
<li><a href="https://windows.microsoft.com/en-us/internet-explorer/make-ie-default-browser#ie=ie-11">http://windows.microsoft.com/en-us/internet-explorer/make-ie-default-browser#ie=ie-11</a></li>
</ul>

<h3 id="技术参考" style="line-height: 24px; font-size: 1.71428571428571rem;">技术参考</h3>
<h3 id="技术参考">技术参考</h3>

<ul>
<li><a href="https://windows.microsoft.com/en-us/internet-explorer/products/ie-8/system-requirements">http://windows.microsoft.com/en-us/internet-explorer/products/ie-8/system-requirements</a></li>
Expand Down
4 changes: 2 additions & 2 deletions files/zh-cn/glossary/nan/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

<p>实际上,如果我在{{glossary("JavaScript")}} 程序中划分两个变量,结果可能是 NaN,它在 JavaScript 中被预定义为“undefined”。于是这个除法可能中断程序。现在,如果这个计算是一个大规模算法的一小部分,那么确定错误实际发生的地方真的很困难。幸运的是,由于结果将是 NaN,我知道我的除数可能会变为 0,我可以设置防止任何此类计算的测试条件,或通知我发生的位置。</p>

<h2 id="学习更多" style="line-height: 30px;">学习更多</h2>
<h2 id="学习更多">学习更多</h2>

<h3 id="通常的知识点" style="line-height: 24px;">通常的知识点</h3>
<h3 id="通常的知识点">通常的知识点</h3>

<ul>
<li>{{Interwiki("wikipedia", "NaN")}} 在维基百科</li>
Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/glossary/statement/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
---
<p>在计算机编程语言中,<strong>语句</strong> 是一行任务指令的代码。每个程序都包含若干语句。</p>

<h2 id="更多" style="line-height: 30px; font-size: 2.14285714285714rem;">更多</h2>
<h2 id="更多">更多</h2>

<h3 id="一般知识">一般知识</h3>

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/glossary/urn/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<h2 id="了解更多">了解更多</h2>

<h3 id="基础知识" style="line-height: 24px;">基础知识</h3>
<h3 id="基础知识">基础知识</h3>

<ul>
<li>{{Interwiki("wikipedia", "URN")}} on Wikipedia</li>
Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/glossary/utf-8/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<p>前 128 个 UTF-8 字符与前 128 个 ASCII 字符 (编号为 0-127) 精确匹配,这意味着现有的 ASCII 文本已经是有效的 UTF-8。所有其他字符都使用 2 到 4 个字节。每个字节都有一些用于编码目的的保留位。由于非 ASCII 字符需要一个以上的字节来存储,如果字节被分隔而不重组,那么它们就会有损坏的风险。</p>

<h2 id="了解更多" style="line-height: 18px; font-size: 1.28571rem;"><strong style="font-size: 1.71428571428571rem;">了解更多</strong></h2>
<h2 id="了解更多"><strong style="font-size: 1.71428571428571rem;">了解更多</strong></h2>

<h3 id="General_knowledge"><strong>General knowledge</strong></h3>

Expand Down
4 changes: 2 additions & 2 deletions files/zh-cn/glossary/webgl/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@

<h2 id="了解更多">了解更多</h2>

<h3 id="常识" style="line-height: 24px;">常识</h3>
<h3 id="常识">常识</h3>

<ul>
<li>维基百科上的 {{Interwiki("wikipedia", "WebGL")}}</li>
<li><a href="https://get.webgl.org/">检查你的设备是否支持 WebGL</a></li>
</ul>

<h3 id="技术信息" style="line-height: 24px;">技术信息</h3>
<h3 id="技术信息">技术信息</h3>

<ul>
<li><a href="/zh-CN/docs/Web/API/WebGL_API">MDN 上的 WebGL 参考资料</a></li>
Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/glossary/websockets/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<h2 id="深入了解">深入了解</h2>

<h3 id="基本知识" style="line-height: 24px;">基本知识</h3>
<h3 id="基本知识">基本知识</h3>

<ul>
<li>{{Interwiki("wikipedia", "Websocket")}}  维基百科</li>
Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/glossary/world_wide_web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

<p>Tim Berners-Lee 在发明 Web 之后不久就创建了 {{Glossary("W3C")}}(万维网联盟),进一步规范和开发 Web。该联盟由核心 Web 兴趣小组组成,如网页浏览器开发人员,政府机构,研究人员和大学。其使命包括教育和外联。</p>

<h2 id="学习更多" style="line-height: 30px;">学习更多</h2>
<h2 id="学习更多">学习更多</h2>

<h3 id="了解它">了解它</h3>

Expand Down
4 changes: 2 additions & 2 deletions files/zh-cn/glossary/xhtml/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
translation_of: Glossary/XHTML
original_slug: XHTML
---
<h3 id="W3C.E6.A0.87.E5.87.86_XHTML" name="W3C.E6.A0.87.E5.87.86_XHTML">W3C 标准 XHTML</h3>
<h3 id="W3C.E6.A0.87.E5.87.86_XHTML">W3C 标准 XHTML</h3>

<h3 id="XHTML.28eXtensible_HyperText_Markup_Language.2C.E5.8F.AF.E6.89.A9.E5.B1.95.E8.B6.85.E6.96.87.E6.9C.AC.E6.A0.87.E8.AE.B0.E8.AF.AD.E8.A8.80.29" name="XHTML.28eXtensible_HyperText_Markup_Language.2C.E5.8F.AF.E6.89.A9.E5.B1.95.E8.B6.85.E6.96.87.E6.9C.AC.E6.A0.87.E8.AE.B0.E8.AF.AD.E8.A8.80.29">XHTML(eXtensible HyperText Markup Language,可扩展超文本标记语言)</h3>
<h3 id="XHTML.28eXtensible_HyperText_Markup_Language.2C.E5.8F.AF.E6.89.A9.E5.B1.95.E8.B6.85.E6.96.87.E6.9C.AC.E6.A0.87.E8.AE.B0.E8.AF.AD.E8.A8.80.29">XHTML(eXtensible HyperText Markup Language,可扩展超文本标记语言)</h3>

<p>2000 年底,国际 W3C(World Wide Web Consortium) 组织公布发行了 XHTML 1.0 版本。XHTML 1.0 是一种在 HTML 4.0 基础上优化和改进的的新语言,目的是基于 XML 应用。XHTML 是一种增强了的 HTML,它的可扩展性和灵活性将适应未来网络应用更多的需求。</p>

Expand Down
2 changes: 1 addition & 1 deletion files/zh-cn/learn/css/css_layout/grid_skills/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ <h2 id="Grid_Layout_Three">网格布局 三</h2>
<p>评估或进一步的工作目的,可以 <a href="https://github.com/mdn/css-examples/blob/master/learn/tasks/grid/grid3-download.html">下载此任务的源文件</a> 在你自己的编辑器或使用线编辑器。</p>
</div>

<h2 id="Grid_and_Flex_Layout_4"网格布局 </h2>
<h2 id="Grid_and_Flex_Layout_4">网格布局 四</h2>

<p>此例中,你需要同时使用 Grid Layout 和 Flexbox 来完成下图所示的任务。这个过程中你不需要通过改变 HTML 来完成。</p>

Expand Down
26 changes: 13 additions & 13 deletions files/zh-cn/learn/css/howto/css_faq/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ <h2 id="为什么我有效的CSS没有正确的渲染?">为什么我有效的
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
</pre>

<h2 id="My_CSS_is_valid.2C_but_not_correctly_rendered" name="My_CSS_is_valid.2C_but_not_correctly_rendered">为什么我有效的 css 完全没有被渲染? </h2>
<h2 id="My_CSS_is_valid.2C_but_not_correctly_rendered">为什么我有效的 css 完全没有被渲染? </h2>

<p>为了使浏览器渲染样式文件,CSS 样式表必须用 text/css 的 MIME。如果 Web 服务器不服务于这种类型,则 CSS 也不会被应用。</p>

<h2 id="Difference_between_id_and_class" name="Difference_between_id_and_class">id 和 class 有什么不同?</h2>
<h2 id="Difference_between_id_and_class">id 和 class 有什么不同?</h2>

<p>HTML元素可以拥有一个id/或class属性。 id属性为元素指定应用一个有效名称,只能有一个具有该名称的元素。class属性指定一个类名的元素,而这个名称可以被页面内的许多元素被使用。 CSS允许你可以对特定的id和/或类名的元素应用样式。<br>
<br>
Expand All @@ -52,17 +52,17 @@ <h2 id="Difference_between_id_and_class" name="Difference_between_id_and_class">

<p>查看 <a href="/en/CSS/Getting_Started/Selectors">CSS selectors</a></p>

<h2 id="Restoring_the_default_property_value" name="Restoring_the_default_property_value">我如何还原属性的默认值?</h2>
<h2 id="Restoring_the_default_property_value">我如何还原属性的默认值?</h2>

<p>最初 CSS 没有提供“defaule”关键字和还原默认属性的值,唯一途径是显式地重新声明该属性。</p>

<p>与 CSS2 相比,已经发生了改变。 关键字 <a href="/es/CSS/initial">initial</a> 现在是一个有效的 CSS 属性。它将给定的 CSS 属性值重置为默认值。</p>

<h2 id="Derived_styles" name="Derived_styles">我如何才可以从一个样式中衍生出另一种样式?</h2>
<h2 id="Derived_styles">我如何才可以从一个样式中衍生出另一种样式?</h2>

<p>CSS 不允许这样做。(See <a href="http://archivist.incutio.com/viewlist/css-discuss/2685">Eric Meyer's note about the Working Group's stance)</a>. 但是,将多个类分配给单个元素,可以提供相同的效果。</p>

<h2 id="Assigning_multiple_classes" name="Assigning_multiple_classes">我该如何给一个元素分配多个类?</h2>
<h2 id="Assigning_multiple_classes">我该如何给一个元素分配多个类?</h2>

<p>HTML 元素可以通过列出的类属性,用空格分开它们。</p>

Expand All @@ -78,11 +78,11 @@ <h2 id="Assigning_multiple_classes" name="Assigning_multiple_classes">我该如

<p>如果相同的属性中声明的规则,解决冲突首先通过特异性,然后根据 CSS 声明的顺序。在 class 属性类的顺序是不相关的。</p>

<h2 id="Style_rules_that_don.27t_work" name="Style_rules_that_don.27t_work">为什么我的样式规则不能正确地工作?</h2>
<h2 id="Style_rules_that_don.27t_work">为什么我的样式规则不能正确地工作?</h2>

<p>在语法上正确的样式规则可能在某些情况下不适用。你可以使用 <a href="/en/DOM_Inspector">DOM Inspector</a>'s <em>CSS Style Rules</em> 调试这类问题。 下面列出了最常见的忽略样式规则的实例:</p>

<h3 id="HTML_elements_hierarchy" name="HTML_elements_hierarchy">HTML 元素层次结构</h3>
<h3 id="HTML_elements_hierarchy">HTML 元素层次结构</h3>

<p>The way CSS styles are applied to HTML elements depends also on the elements hierarchy. It is important to remember that a rule applied to a descendent overrides the style of the parent, in spite of any specificity or priority of CSS rules.</p>

Expand All @@ -97,7 +97,7 @@ <h3 id="HTML_elements_hierarchy" name="HTML_elements_hierarchy">HTML 元素层

<p>In case of complex HTML hierarchies, if a rule seems to be ignored, check if the element is inside another element with a different style.</p>

<h3 id="Explicitly_re-defined_style_rule" name="Explicitly_re-defined_style_rule">显式重定义样式规则</h3>
<h3 id="Explicitly_re-defined_style_rule">显式重定义样式规则</h3>

<p>In CSS stylesheets, order <strong>is</strong> important. If you define a rule and then you re-define the same rule, the last definition is used.</p>

Expand All @@ -116,7 +116,7 @@ <h3 id="Explicitly_re-defined_style_rule" name="Explicitly_re-defined_style_rule

<p>To avoid this kind of error, try to define rules only once for a certain selector, and group all rules belonging to that selector.</p>

<h3 id="Use_of_a_shorthand_property" name="Use_of_a_shorthand_property">使用便捷属性</h3>
<h3 id="Use_of_a_shorthand_property">使用便捷属性</h3>

<p>Using shorthand properties for defining style rules is good because it uses a very compact syntax. Using shorthand with only some attributes is possible and correct, but it must be remembered that undeclared attributes are automatically reset to default. This means that a previous rule for a single attribute could be implicitly overridden.</p>

Expand All @@ -136,7 +136,7 @@ <h3 id="Use_of_a_shorthand_property" name="Use_of_a_shorthand_property">使用
}
</pre>

<h3 id="Use_of_the_.2A_selector" name="Use_of_the_.2A_selector">使用 <code>*</code> 选择器</h3>
<h3 id="Use_of_the_.2A_selector">使用 <code>*</code> 选择器</h3>

<p>The <code>*</code> wildcard selector refers to any element, and it has to be used with particular care.</p>

Expand All @@ -154,7 +154,7 @@ <h3 id="Use_of_the_.2A_selector" name="Use_of_the_.2A_selector">使用 <code>*<

<p>The use of the * selector should be minimized as it is a slow selector, especially when not used as the first element of a selector. Its use should be avoided as much as possible.</p>

<h3 id="Specificity_in_CSS" name="Specificity_in_CSS">CSS 中的优先级</h3>
<h3 id="Specificity_in_CSS">CSS 中的优先级</h3>

<p>When multiples rules apply to a certain element, the rule chosen depends on its style <a href="/en/CSS/Specificity">specificity</a>. Inline style (in HTML <code>style</code> attributes) comes first, followed by ID selectors, then class selectors and eventually element-name selectors.</p>

Expand All @@ -167,9 +167,9 @@ <h3 id="Specificity_in_CSS" name="Specificity_in_CSS">CSS 中的优先级</h3>

<p>The rules are more complicated when the selector has multiple parts. More detailed information about how selector specificity is calculated can be found in the <a href="http://www.w3.org/TR/CSS21/cascade.html#specificity">CSS 2.1 Specification chapter 6.4.3</a></p>

<h2 id="What_do_the_-moz-.2A_properties_do.3F" name="What_do_the_-moz-.2A_properties_do.3F"> -moz-*, -ms-*, -webkit-*, -o-* 以及 -khtml-* 属性有什么用?</h2>
<h2 id="What_do_the_-moz-.2A_properties_do.3F"> -moz-*, -ms-*, -webkit-*, -o-* 以及 -khtml-* 属性有什么用?</h2>

<h2 id="What_do_the_-moz-.2A_properties_do.3F" name="What_do_the_-moz-.2A_properties_do.3F">These  properties, called <em>prefixed properties</em>, are extension to the CSS standard. They are used to use experimental and non-standard features without polluting the regular namespace, preventing future incompatibilities to arise when the standard is extended.</h2>
<h2 id="What_do_the_-moz-.2A_properties_do.3F">These  properties, called <em>prefixed properties</em>, are extension to the CSS standard. They are used to use experimental and non-standard features without polluting the regular namespace, preventing future incompatibilities to arise when the standard is extended.</h2>

<p>The use of such properties on production websites is not recommended. If nevertheless needed, you are hinted to make a plan for the website evolution: these prefixed properties can be modified or even suppressed when the standard evolve.</p>

Expand Down
Loading

0 comments on commit 243417a

Please sign in to comment.