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

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

@@ -3,7 +3,7 @@
<h2 id="概述">概述</h2>
<p><code><strong>anchor()</strong></code> 方法创建一个 <a href="/zh-CN/docs/Web/HTML/Element/a" title="HTML &lt;a&gt; 元素(或称锚元素)可以创建通向其他网页、文件、同一页面内的位置、电子邮件地址或任何其他 URL 的超链接。"><code>&lt;a&gt;</code></a> HTML 锚元素被用作超文本靶标hypertext target</p>
<h2 id="Syntax" name="Syntax">语法</h2>
<pre class="syntaxbox"><code>str.anchor(<em>name</em>) </code></pre>
<pre><code class="language-javascript"><code>str.anchor(<em>name</em>) </code></code></pre>
<h3 id="参数">参数</h3>
<dl>
<dt><code>name</code></dt>
@@ -15,11 +15,11 @@
<p>使用 anchor 方法创建的锚点anchors将会成为 <a href="/zh-CN/docs/Web/API/Document/anchors" title="anchors属性返回当前文档中的所有锚点元素."><code>document.anchors</code></a> 数组的元素。</p>
<h2 id="示例">示例</h2>
<h3 id="例子使用_anchor">例子:使用 <code>anchor</code></h3>
<pre class="brush:js">var myString = "Table of Contents";
<pre><code class="language-js">var myString = "Table of Contents";
document.body.innerHTML = myString.anchor("contents_anchor");</pre>
document.body.innerHTML = myString.anchor("contents_anchor");</code></pre>
<p>将会输出下面的 HTML</p>
<pre class="brush: html">&lt;a name="contents_anchor"&gt;Table of Contents&lt;/a&gt;</pre>
<pre><code class="language-html">&lt;a name="contents_anchor"&gt;Table of Contents&lt;/a&gt;</code></pre>
<h2 id="规范">规范</h2>
<table class="standard-table">
<tbody>