语法高亮,滚动条美化,设置页面调整

This commit is contained in:
fofolee
2019-04-19 02:41:09 +08:00
parent 1e8f76c000
commit 359d29ee0b
1590 changed files with 12328 additions and 11441 deletions

View File

@@ -4,16 +4,16 @@
<div><iframe class="interactive interactive-js" frameborder="0" height="250" src="https://interactive-examples.mdn.mozilla.net/pages/js/date-gettimezoneoffset.html" width="100%"></iframe></div>
<p class="hidden">The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone <a class="external" href="https://github.com/mdn/interactive-examples" rel="noopener">https://github.com/mdn/interactive-examples</a> and send us a pull request.</p>
<h2 id="Syntax" name="Syntax">语法</h2>
<pre class="syntaxbox language-html" style="margin-bottom: 0px; padding: 1em; border-left-width: 6px; border-left-style: solid; font-family: Consolas, Monaco, 'Andale Mono', monospace; font-size: 14px; text-shadow: none; direction: ltr; white-space: normal; background-color: rgba(212, 221, 228, 0.498039);"><code class="language-html" style="font-family: Consolas, Monaco, 'Andale Mono', monospace; color: inherit; text-shadow: none; direction: ltr;">dateObj.getTimezoneOffset()</code></pre>
<pre><code class="language-html" style="margin-bottom: 0px; padding: 1em; border-left-width: 6px; border-left-style: solid; font-family: Consolas, Monaco, 'Andale Mono', monospace; font-size: 14px; text-shadow: none; direction: ltr; white-space: normal; background-color: rgba(212, 221, 228, 0.498039);"><code class="language-html" style="font-family: Consolas, Monaco, 'Andale Mono', monospace; color: inherit; text-shadow: none; direction: ltr;">dateObj.getTimezoneOffset()</code></code></pre>
<h3 id="Parameters" name="Parameters">参数</h3>
<p></p>
<h3 id="Description" name="Description">返回值</h3>
<p>时区偏差time-zone offset表示协调世界时UTC与本地时区之间的差值单位为分钟。需要注意的是如果本地时区晚于协调世界时则该差值为正值如果早于协调世界时则为负值。例如你所在时区为 UTC+10澳大利亚东部标准时间将会返回 -600。对于同一个时区夏令时Daylight Saving Time将会改变这个值。</p>
<h2 id="Examples" name="Examples">例子</h2>
<h3 id="Example:_Using_getTimezoneOffset" name="Example:_Using_getTimezoneOffset">例子: 使用<code>getTimezoneOffset方法</code></h3>
<pre class="brush:js">var x = new Date();
<pre><code class="language-js">var x = new Date();
var currentTimeZoneOffsetInHours = x.getTimezoneOffset() / 60;
</pre>
</code></pre>
<h2 id="规范">规范</h2>
<table class="standard-table">
<tbody>