簡體   English   中英

JAWS 不從 IE 中的內容讀取表頭

[英]JAWS not reading table header from contents in IE

我有以下標記。

 <!DOCTYPE html> <html> <body> <h2>HTML Table</h2> <table> <tr> <th tabIndex="0">Company</th> <th tabIndex="0">Contact</th> <th tabIndex="0">Country</th> </tr> <tr> <td>Alfreds Futterkiste</td> <td>Maria Anders</td> <td>Germany</td> </tr> <tr> <td>Centro comercial Moctezuma</td> <td>Francisco Chang</td> <td>Mexico</td> </tr> </table> </body> </html>

我正在使用 IE11 和 JAWS18。 使用選項卡導航時,JAWS 不會讀取表格標題。 當我在 chrome 和 JAWS 中嘗試使用相同的標記時,它正在讀取所有表頭。

我還嘗試為表標題指定 aria-label,但沒有用。

 <th tabIndex="0" aria-label="Company">Company</th> <th tabIndex="0" aria-lable="Contact">Contact</th> <th tabIndex="0" aria-label="Country">Country</th>

有人可以告訴為什么 JAWS18 無法讀取 IE 中的表頭嗎? 它無法從表頭內容或 IE 中的 aria-label 中讀取。 另外,有沒有其他選擇?

向標題單元格添加范圍屬性,例如

<th scope=“col”>Company</th>

這告訴屏幕閱讀器標題單元格和其他單元格之間的關系是什么。 為此,您不需要 tabindex 或 ARIA,只需使用箭頭鍵進行導航而不是 Tab 鍵。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM