File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ watch(
137137
138138当创建一个表单,你可能使用到以下几个元素:` <form> ` 、` <label> ` 、` <input> ` 、` <textarea> ` 和 ` <button> ` 。
139139
140- 标签通常放置在表格字段的顶部或左侧 :
140+ 标签通常放置在表单字段的顶部或左侧 :
141141
142142``` vue-html
143143<form action="/dataCollectionLocation" method="post" autocomplete="on">
@@ -169,7 +169,7 @@ watch(
169169
170170![ Chrome 开发者工具正在通过标签展示无障碍访问的 input 框的名字] ( ./images/AccessibleLabelChromeDevTools.png )
171171
172- :::warning 警告:
172+ :::warning 警告
173173你可能还见过这样的包装 input 框的标签:
174174
175175``` vue-html
@@ -179,7 +179,7 @@ watch(
179179</label>
180180```
181181
182- 但我们仍建议你显式地为 input 元素设置 id 相匹配的标签,以更好地实现无障碍访问。
182+ 但我们仍建议你显式地为 input 元素设置与 id 相匹配的标签,以更好地实现无障碍访问。
183183:::
184184
185185#### ` aria-label ` {#aria-label}
@@ -383,7 +383,7 @@ const nameId = useId()
383383</form>
384384```
385385
386- 现在,只要视力情况良好,用户可以就能通过按钮的内容识别出该 input 框的目的。
386+ 现在,只要视力情况良好,用户就能通过按钮的内容识别出该 input 框的目的。
387387
388388此时我们可以使用 CSS 从视觉上隐藏元素,同时也不会影响到无障碍访问:
389389
You can’t perform that action at this time.
0 commit comments