From c8a90c7efb53bdf1f1b019a071d9b80e3efb823e Mon Sep 17 00:00:00 2001 From: MDN Date: Tue, 6 Jul 2021 00:36:59 +0000 Subject: [CRON] sync translated content --- .../api/htmlorforeignelement/tabindex/index.html | 50 +++++++++++++++ files/zh-cn/orphaned/web/api/typeinfo/index.html | 71 ++++++++++++++++++++++ 2 files changed, 121 insertions(+) create mode 100644 files/zh-cn/orphaned/web/api/htmlorforeignelement/tabindex/index.html create mode 100644 files/zh-cn/orphaned/web/api/typeinfo/index.html (limited to 'files/zh-cn/orphaned') 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 +--- +
+
{{ APIRef("HTML DOM") }}
+
+ +

概述

+ +

获取或设置当前元素的tab键激活顺序.

+ +

语法

+ +
element.tabIndex = index index = element.tabIndex
+
+ +

参数

+ + + +

Tab键的遍历顺序是这样的:

+ +
    +
  1. 对于tabIndex值为正数的元素,如果多个元素的tabIndex值相同,则以他们出现在字符流中的次序来遍历;否则按tabIndex值由小到大的顺序来遍历。
  2. +
  3. 对于不支持tabIndex属性或支持tabIndex属性并将其赋值为0的元素,按照他们出现在字符流中的次序来遍历。
  4. +
  5. 处于不可用状态的元素不会被遍历到。
  6. +
+ +

支持tabIndex属性的元素有:a,area,button,input,object,select和textarea

+ +

tabIndex的值不需要是连续的,也不需要以某个特定值开始。

+ +

例子

+ +
var b1 = document.getElementById("button1");
+b1.tabIndex = 1;
+
+ +

规范

+ +

W3C DOM Level 2 HTML tabIndex

+ +

了解更多,请查看: The solution: changes to standard behavior of tabindex

+ +

{{ languages( { "ja": "ja/DOM/element.tabIndex", "fr": "fr/DOM/element.tabIndex", "pl": "pl/DOM/element.tabIndex" , "en": "en/DOM/element.tabIndex" } ) }}

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 +--- +

{{APIRef("DOM")}} {{obsolete_header}}

+ +

属性

+ +
+
{{domxref("TypeInfo.typeName")}} {{Readonlyinline}}
+
Returns a {{domxref("DOMString")}}.
+
{{domxref("TypeInfo.typeNamespace")}} {{Readonlyinline}}
+
Returns a {{domxref("DOMString")}}.
+
+ +

方法

+ +
+
{{domxref("TypeInfo.isDerivedFrom()")}}
+
Returns a {{jsxref("Boolean")}}
+
+ +

常量

+ + + + + + + + + + + + + + + + + + + + + + + + +
ConstantValue
DERIVATION_RESTRICTION1
DERIVATION_EXTENSION2
DERIVATION_UNION4
DERIVATION_LIST8
+ +

规范

+ + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName("DOM3 Core", "core.html#TypeInfo", "TypeInfo")}}{{Spec2("DOM3 Core")}}Initial definition
-- cgit v1.2.3-54-g00ecf