【发布时间】:2021-10-20 09:43:09
【问题描述】:
我正在为视障人士优化网站。我在页面上有一个表格,格式如下 -
<table>
<thead>
<tr>
<th>Number</th>
<th>Name</th>
<th>Surname</th>
</tr>
</thead>
<tbody>
...
</tbody>
</table>
目前屏幕阅读器正在宣布“row 1 col 1 number”,但期望它应该在其元素时宣布“row 1 col 1 number column header”。我该如何配置它?设置 role="columnheader" 不起作用。
【问题讨论】:
标签: html web accessibility wai-aria