我是可访问性的新手,我有一个包含如下文本的跨度
<span class="text" >Account Information</span>
默认情况下,屏幕阅读器不会停在我的跨度上,也不会阅读它,所以我在 SO 上搜索和搜索,但没有一个解决方案有效
我最终得到了类似下面的结果,但仍然无法正常工作(我在 Chrome 上进行了测试,使用 JAWS 屏幕阅读器)
<span aria-live="assertive" class="text" role="region" tabindex="4" aria-label="Account Information">Account Information</span>
让屏幕阅读器阅读跨度文本的最佳做法是什么?
更新完整的html
<section _ngcontent-lfb-c4="" class="toolbar">
<dx-button _ngcontent-lfb-c4="" class="maximizing-button dx-button dx-button-normal dx-button-mode-contained dx-widget dx-button-has-icon" ng-reflect-element-attr="[object Object]" ng-reflect-icon="material-icons mat-fullscreen" role="button" aria-label="Maximize Widget" tabindex="0" aria-pressed="false">
<div class="dx-button-content"><i class="dx-icon material-icons mat-fullscreen"></i></div>
</dx-button>
<span _ngcontent-lfb-c4="" aria-live="assertive" class="text" role="region" tabindex="4" aria-label="Account Information">
Account Information
</span>
<span _ngcontent-lfb-c4="" class="toolbar-right">
<span _ngcontent-lfb-c1="" class="total-account-value-info" role="note" tabindex="3" toolbar-right="">
(Total Account Value is as of the end of last business day)
</span>
</span>
</section>