You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>Enforce these, or your own, agreed upon guidelines at all times. Small or large, call out what's incorrect. For additions or contributions to this Code Guide, please <ahref="https://github.com/materliu/code-guide/issues/new">open an issue on GitHub</a>.</p>
<p>Every line of code should appear to be written by a single person, no matter the number of contributors.</p>
132
+
<p>无论人数多少,代码都应该同出一门。</p>
135
133
</blockquote>
136
134
</div>
137
135
</div>
@@ -222,13 +220,13 @@ <h3>HTML5 doctype</h3>
222
220
223
221
<divclass="section" id="html-lang">
224
222
<divclass="col">
225
-
<h3>Language attribute</h3>
226
-
<p>From the HTML5 spec:</p>
223
+
<h3>语言属性</h3>
224
+
<p>针对HTML5 :</p>
227
225
<blockquote>
228
-
<p>Authors are encouraged to specify a lang attribute on the root html element, giving the document's language. This aids speech synthesis tools to determine what pronunciations to use, translation tools to determine what rules to use, and so forth.</p>
<p>Read more about the <code>lang</code>attribute<ahref="http://www.w3.org/html/wg/drafts/html/master/semantics.html#the-html-element">in the spec</a>.</p>
231
-
<p>Head to Sitepoint for a <ahref="http://reference.sitepoint.com/html/lang-codes">list of language codes</a>.</p>
<p>Sitepoint只是给出了语言代码的大类,比如说中文就只给出了ZH,但是没有区分香港,台湾,大陆等。而微软给出的一份细分了zh-cn,zh-hk,zh-tw, Head to Microsoft for a <ahref="http://msdn.microsoft.com/en-us/library/ms533052(v=vs.85).aspx">detail list of language codes</a>.</p>
<p>Internet Explorer supports the use of a document compatibility <code><meta></code>tag to specify what version of IE the page should be rendered as. Unless circumstances require otherwise, it's most useful to instruct IE to use the latest supported mode with <strong>edge mode</strong>.</p>
246
-
<p>For more information, <ahref="http://stackoverflow.com/questions/6771258/whats-the-difference-if-meta-http-equiv-x-ua-compatible-content-ie-edge-e">read this awesome Stack Overflow article</a>.</p>
242
+
<h3>IE 兼容模式</h3>
243
+
<p>Internet Explorer 支持使用一个文档属性标签 <code><meta></code>来指出这个页面应当支持的IE的版本。除非另有规定,最好用最新的支持的模式。</p>
<p>Compared to <code><link></code>s, <code>@import</code>is slower, adds extra page requests, and can cause other unforeseen problems. Avoid them and instead opt for an alternate approach:</p>
0 commit comments