mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-12-18 00:44:36 +08:00
语法高亮,滚动条美化,设置页面调整
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<h2 id="概述">概述</h2>
|
||||
<p><code><strong>anchor()</strong></code> 方法创建一个 <a href="/zh-CN/docs/Web/HTML/Element/a" title="HTML <a> 元素(或称锚元素)可以创建通向其他网页、文件、同一页面内的位置、电子邮件地址或任何其他 URL 的超链接。"><code><a></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"><a name="contents_anchor">Table of Contents</a></pre>
|
||||
<pre><code class="language-html"><a name="contents_anchor">Table of Contents</a></code></pre>
|
||||
<h2 id="规范">规范</h2>
|
||||
<table class="standard-table">
|
||||
<tbody>
|
||||
|
||||
Reference in New Issue
Block a user