下面提到的代码反映了一个'对话框'在屏幕上。我正在使用NVDA屏幕阅读器来阅读屏幕。打开对话框时,仅在输入按钮和屏幕阅读器上显示的焦点仅读取输入按钮。 但我希望屏幕阅读器应该阅读H2标题文本和其他文本"你确定要*****"。我正在使用MVC。所以,任何人都可以帮助我,我们如何在对话框中阅读全文?
<div id="completCheckInLayer">
<div class="ui-dialog-content ui-widget-content">
<div id="CompleteCheckInhelpLayerContent" class="complete-checkin-content">
<h2 class="help-layer-heading" > <span class="accessibleText"> Beginning of Dialog</span>
Confirm Completion Without Printing</h2>
<div class="check-in-complete-help-layer-content">
Are you sure you want to ******And Some More Text here*****
<div class="center">
<span id="Span1" class="DCLButton"><span class="DCLButtonInner">
<form action="/FormPrint.aspx" target="_blank" method="get">
<input value="Print Form" type="submit" id="confirmationLayerPrintButton" />
</form>
</span></span><span id="Span2" class="DCLButton blueShadowButton help-layer-complete-checkin-button">
<span class="DCLButtonInner">
<input value="Continue Without Printing" type="submit" id="confirmationLayerCompleteCheckInButton" />
</span></span>
<span class="accessibleText"> End of Dialog</span>
</div>
</div>
</div>
</div>