From a9abc009b34dab858bf1bcd29bcc93e1382ce8f0 Mon Sep 17 00:00:00 2001 From: Dongsen Date: Tue, 24 Aug 2021 03:42:04 +0800 Subject: Update ARIA index and tech page (#2185) * update aria index and tech page * supplement a missed paragraph * fix wording --- .../accessibility/aria/aria_techniques/index.html | 340 +++++++++++++-------- 1 file changed, 209 insertions(+), 131 deletions(-) (limited to 'files/zh-cn/web/accessibility/aria/aria_techniques') diff --git a/files/zh-cn/web/accessibility/aria/aria_techniques/index.html b/files/zh-cn/web/accessibility/aria/aria_techniques/index.html index 2f704dff7f..e8117f3603 100644 --- a/files/zh-cn/web/accessibility/aria/aria_techniques/index.html +++ b/files/zh-cn/web/accessibility/aria/aria_techniques/index.html @@ -1,136 +1,214 @@ --- -title: ARIA techniques +title: '使用 ARIA:角色、状态和属性' slug: Web/Accessibility/ARIA/ARIA_Techniques tags: - - ARIA - - Accessibility - - NeedsTranslation - - TopicStub +- ARIA +- 可访问性 +- 无障碍 +- Overview +- Reference translation_of: Web/Accessibility/ARIA/ARIA_Techniques --- -

Roles

- -

Widget roles

- - - -

Composite roles

- -

The techniques below describes each composite role as well as their required and optional child roles.

- - - -

Document structure roles

- - - -

Landmark roles

- - - -

States and properties

- -

Widget attributes

- - - -

Live region attributes

- - - -

Drag & drop attributes

- - - -

Relationship attributes

- - + +

ARIA 定义了可以应用于元素的语义,这些语义分为 roles(定义一种用户界面元素)、statesproperties,这些都是角色所支持的。作者必须在元素的生命周期中为其分配一个 ARIA 角色和适当的状态和属性,除非该元素已经具有适当的 ARIA 语义(通过使用适当的 HTML 元素)。添加 ARIA 语义只会向浏览器的可访问性 API 公开额外信息,而不会影响页面的 DOM。

+ +

角色

+ +

组件角色

+ +
+ +
+ +

复合角色

+ +

下面的技术描述了每个复合角色及其必需和可选的子角色。

+ +
+ +
+ +

文档结构角色

+ +
+ +
+ +

具有里程碑意义的角色

+ +
+ +
+ +

实时区域角色

+ +
+ +
+ +

窗口角色

+ +
+ +
+ +

状态和属性

+ +

组件属性

+ +
+ +
+ +

实时区域属性

+ +
+ +
+ +

拖放属性

+ +
+ +
+ +

关系属性

+ +
+ +
+ +

MicrosoftEdge 特定的属性

+ +
+ +
-- cgit v1.2.3-54-g00ecf