From 5cc1519535014aaf2357d388ea71617f62d092f3 Mon Sep 17 00:00:00 2001 From: Zhicheng WANG Date: Sat, 25 Jan 2020 08:58:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=BF=99=E9=87=8C=E5=90=8C=E6=97=B6?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=20Attribute=20=E5=92=8C=20Property=EF=BC=8C?= =?UTF-8?q?=E4=B8=BA=E5=85=8D=E6=B7=B7=E6=B7=86=EF=BC=8C=E6=A0=87=E6=B3=A8?= =?UTF-8?q?=E4=B8=8A=E5=B1=9E=E6=80=A7=E7=9A=84=E5=8E=9F=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aio/content/guide/accessibility.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/aio/content/guide/accessibility.md b/aio/content/guide/accessibility.md index 1286bff16e..b3a2a3f4cc 100644 --- a/aio/content/guide/accessibility.md +++ b/aio/content/guide/accessibility.md @@ -24,20 +24,20 @@ work well for all users, including those who rely on assistive technologies. ## Accessibility attributes -## 无障碍属性 +## 无障碍属性(Attribute) Building accessible web experience often involves setting [ARIA attributes](https://developers.google.com/web/fundamentals/accessibility/semantics-aria) to provide semantic meaning where it might otherwise be missing. Use [attribute binding](guide/template-syntax#attribute-binding) template syntax to control the values of accessibility-related attributes. -建立无障碍的Web体验通常会涉及设置 [ARIA 属性](https://developers.google.com/web/fundamentals/accessibility/semantics-aria)以提供可能会丢失的语义。使用 [Attribute 绑定](guide/template-syntax#attribute-binding)模板语法来控制与无障碍性相关的 Attribute 值。 +建立无障碍的 Web 体验通常会涉及设置 [ARIA 属性(Attribute)](https://developers.google.com/web/fundamentals/accessibility/semantics-aria) 以提供可能会丢失的语义。使用 [Attribute 绑定](guide/template-syntax#attribute-binding)模板语法来控制与无障碍性相关的属性(Attribute)值。 When binding to ARIA attributes in Angular, you must use the `attr.` prefix, as the ARIA specification depends specifically on HTML attributes rather than properties on DOM elements. -在 Angular 中绑定 ARIA 属性时,必须使用 `attr.` 前缀,因为 ARIA 规范针对的是 HTML 属性,而不是 DOM 元素的属性。 +在 Angular 中绑定 ARIA 属性(Attribute)时,必须使用 `attr.` 前缀,因为 ARIA 规范针对的是 HTML 属性(Attribute),而不是 DOM 元素的属性(Property)。 ```html @@ -48,7 +48,7 @@ specification depends specifically on HTML attributes rather than properties on Note that this syntax is only necessary for attribute _bindings_. Static ARIA attributes require no extra syntax. -注意,此语法仅对于 Attribute *绑定*是必需的。静态 ARIA 属性不需要额外的语法。 +注意,此语法仅对于属性(Attribute)*绑定*是必需的。静态 ARIA 属性(Attribute)不需要额外的语法。 ```html @@ -65,7 +65,7 @@ NOTE: By convention, HTML attributes use lowercase names (`tabindex`), while properties use camelCase names (`tabIndex`). - 按照约定,HTML Attribute 使用小写名称( `tabindex` ),而 Property 使用 camelCase 名称( `tabIndex` )。 + 按照约定,HTML 属性(Attribute)使用小写名称( `tabindex` ),而 Property 使用 camelCase 名称( `tabIndex` )。 See the [Template Syntax](https://angular.io/guide/template-syntax#html-attribute-vs-dom-property) guide for more background on the difference between attributes and properties. @@ -116,7 +116,7 @@ When authoring Angular components, you should re-use these native elements direc For example, instead of creating a custom element for a new variety of button, you can create a component that uses an attribute selector with a native `