aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/orphaned
diff options
context:
space:
mode:
authorMDN <actions@users.noreply.github.com>2021-07-06 00:36:59 +0000
committerMDN <actions@users.noreply.github.com>2021-07-06 00:36:59 +0000
commitc8a90c7efb53bdf1f1b019a071d9b80e3efb823e (patch)
treeb0eab4399a81ad9a3c73da565a937d1a2f0f3431 /files/zh-cn/orphaned
parent9e402885ddc03e6a287453189adb426ec930742a (diff)
downloadtranslated-content-c8a90c7efb53bdf1f1b019a071d9b80e3efb823e.tar.gz
translated-content-c8a90c7efb53bdf1f1b019a071d9b80e3efb823e.tar.bz2
translated-content-c8a90c7efb53bdf1f1b019a071d9b80e3efb823e.zip
[CRON] sync translated content
Diffstat (limited to 'files/zh-cn/orphaned')
-rw-r--r--files/zh-cn/orphaned/web/api/htmlorforeignelement/tabindex/index.html50
-rw-r--r--files/zh-cn/orphaned/web/api/typeinfo/index.html71
2 files changed, 121 insertions, 0 deletions
diff --git a/files/zh-cn/orphaned/web/api/htmlorforeignelement/tabindex/index.html b/files/zh-cn/orphaned/web/api/htmlorforeignelement/tabindex/index.html
new file mode 100644
index 0000000000..576b630344
--- /dev/null
+++ b/files/zh-cn/orphaned/web/api/htmlorforeignelement/tabindex/index.html
@@ -0,0 +1,50 @@
+---
+title: HTMLElement.tabIndex
+slug: orphaned/Web/API/HTMLOrForeignElement/tabIndex
+translation_of: Web/API/HTMLOrForeignElement/tabIndex
+original_slug: Web/API/HTMLOrForeignElement/tabIndex
+---
+<div>
+<div>{{ APIRef("HTML DOM") }}</div>
+</div>
+
+<h3 id="Summary" name="Summary">概述</h3>
+
+<p>获取或设置当前元素的tab键激活顺序.</p>
+
+<h3 id="Syntax" name="Syntax">语法</h3>
+
+<pre class="eval">element.tabIndex = <em>index </em><em>index </em>= element.tabIndex
+</pre>
+
+<h3 id="Parameters" name="Parameters">参数</h3>
+
+<ul>
+ <li><code>index</code>是一个数字,表示顺序。取值需要在0到32767之间。</li>
+</ul>
+
+<p>Tab键的遍历顺序是这样的:</p>
+
+<ol>
+ <li>对于tabIndex值为正数的元素,如果多个元素的tabIndex值相同,则以他们出现在字符流中的次序来遍历;否则按tabIndex值由小到大的顺序来遍历。</li>
+ <li>对于不支持tabIndex属性或支持tabIndex属性并将其赋值为0的元素,按照他们出现在字符流中的次序来遍历。</li>
+ <li>处于不可用状态的元素不会被遍历到。</li>
+</ol>
+
+<p>支持tabIndex属性的元素有:a,area,button,input,object,select和textarea<font face="monospace" size="3"><span style="line-height: 19.5px;">。</span></font></p>
+
+<p>tabIndex的值不需要是连续的,也不需要以某个特定值开始。</p>
+
+<h3 id="Example" name="Example">例子</h3>
+
+<pre>var b1 = document.getElementById("button1");
+b1.tabIndex = 1;
+</pre>
+
+<h3 id="Specification" name="Specification">规范</h3>
+
+<p><a class="external" href="http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-40676705">W3C DOM Level 2 HTML tabIndex</a></p>
+
+<p>了解更多,请查看: <a href="/zh-cn/Key-navigable_custom_DHTML_widgets#The_solution:_changes_to_standard_behavior_of_tabindex" title="zh-cn/Key-navigable_custom_DHTML_widgets#The_solution:_changes_to_standard_behavior_of_tabindex">The solution: changes to standard behavior of tabindex</a></p>
+
+<p>{{ languages( { "ja": "ja/DOM/element.tabIndex", "fr": "fr/DOM/element.tabIndex", "pl": "pl/DOM/element.tabIndex" , "en": "en/DOM/element.tabIndex" } ) }}</p>
diff --git a/files/zh-cn/orphaned/web/api/typeinfo/index.html b/files/zh-cn/orphaned/web/api/typeinfo/index.html
new file mode 100644
index 0000000000..cb47bcd1b7
--- /dev/null
+++ b/files/zh-cn/orphaned/web/api/typeinfo/index.html
@@ -0,0 +1,71 @@
+---
+title: TypeInfo
+slug: orphaned/Web/API/TypeInfo
+tags:
+ - TypeInfo
+translation_of: Web/API/TypeInfo
+original_slug: Web/API/TypeInfo
+---
+<p>{{APIRef("DOM")}} {{obsolete_header}}</p>
+
+<h2 id="属性">属性</h2>
+
+<dl>
+ <dt>{{domxref("TypeInfo.typeName")}} {{Readonlyinline}}</dt>
+ <dd>Returns a {{domxref("DOMString")}}.</dd>
+ <dt>{{domxref("TypeInfo.typeNamespace")}} {{Readonlyinline}}</dt>
+ <dd>Returns a {{domxref("DOMString")}}.</dd>
+</dl>
+
+<h2 id="方法">方法</h2>
+
+<dl>
+ <dt>{{domxref("TypeInfo.isDerivedFrom()")}}</dt>
+ <dd>Returns a {{jsxref("Boolean")}}</dd>
+</dl>
+
+<h2 id="常量">常量</h2>
+
+<table>
+ <tbody>
+ <tr>
+ <th scope="row">Constant</th>
+ <td>Value</td>
+ </tr>
+ <tr>
+ <th scope="row"><code>DERIVATION_RESTRICTION</code></th>
+ <td>1</td>
+ </tr>
+ <tr>
+ <th scope="row"><code>DERIVATION_EXTENSION</code></th>
+ <td>2</td>
+ </tr>
+ <tr>
+ <th scope="row"><code>DERIVATION_UNION</code></th>
+ <td>4</td>
+ </tr>
+ <tr>
+ <th scope="row"><code>DERIVATION_LIST</code></th>
+ <td>8</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="规范">规范</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">Specification</th>
+ <th scope="col">Status</th>
+ <th scope="col">Comment</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{SpecName("DOM3 Core", "core.html#TypeInfo", "TypeInfo")}}</td>
+ <td>{{Spec2("DOM3 Core")}}</td>
+ <td>Initial definition</td>
+ </tr>
+ </tbody>
+</table>