您如何使 JAWS 等屏幕阅读器可以访问加载图标? [英] How do you make the Loading icon accessible for screen-readers like JAWS?
查看:40
wai-aria
jaws-screen-reader
本文介绍了您如何使 JAWS 等屏幕阅读器可以访问加载图标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
所以 HTML 代码是这样的:
即使提供了 ALT 文本,在更改样式以显示图标(可见性:可见)时,在加载图标出现的时间间隔内也不会读取.
role=alert 不是一个可行的解决方案,因为这不是警报
解决方案你需要在你的DIV属性中添加以下属性role="alertdialog" aria-busy="true" aria-live="assertive"
<img id="正在处理" src="PT_LOADING.gif" alt="正在处理...请稍候" title=""/>
So the HTML code is this:
<div style="visibility: hidden; display: none; right: 0px;">
<img id="processing" src="PT_LOADING.gif" alt="Processing... please wait" title=""> </div>
Even though the ALT text is provided, upon changing the style to show the icon (visibility:visible), it is not read in the time gap when the loading icon appears.
role=alert is not a feasible solution since this is not an alert
解决方案 You need to add the following attributes to your DIV attributes
role="alertdialog" aria-busy="true" aria-live="assertive"
<div style="visibility: hidden; display: none; right: 0px;" role="alertdialog" aria-busy="true" aria-live="assertive">
<img id="processing" src="PT_LOADING.gif" alt="Processing... please wait" title="" />
</div>
这篇关于您如何使 JAWS 等屏幕阅读器可以访问加载图标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文
相关文章
- Javascript keyevent和JAWS屏幕阅读器;
- 使屏幕阅读器可以访问步骤进度指示器;
- 使屏幕阅读器可以访问步骤进度指示器;
- 如何隐藏文本并使屏幕阅读器可以访问它?;
- JAWS屏幕阅读器在FireFox中重复树项;
- 如何使JAWS屏幕阅读器识别和读取cefsharp ChromiumWebBrowser控件的内容?;
- 从屏幕阅读器隐藏图标的适当方法;
- 如何使屏幕阅读器工具大声读取内联错误?;
- 屏幕阅读器在哪里?;
- 屏幕阅读器和 Javascript;
- 桌子和屏幕阅读器;
- 在屏幕阅读器中暂停可访问性;
- 网站可访问性:什么屏幕阅读器等,以测试,而怎么样?;
- 屏幕阅读器是否可以看到背面可见性?;
- 向屏幕阅读器隐藏图标的适当方式是什么;
- 如何隐藏文本并使其可由屏幕阅读器访问?;
- 如何使屏幕阅读器不能将元素识别为元素组?;
- 如何使屏幕阅读器在div中读取不同的文本;
- 如何使pdf页面适合vfr阅读器中的屏幕尺寸;
- 屏幕阅读器如何阅读< abbr>标签?;
- 通过新闻阅读器访问;
- 如何隐藏文本并使其可通过屏幕阅读器访问?;
- 如何为网页定义屏幕阅读器顺序;
- 如何通过CSS定位盲文/屏幕阅读器;
- 如何使屏幕阅读器阅读WPF消息的方式类似于阅读Win32 MessageBox?;
其他开发最新文章
- 拒绝显示一个框架,因为它将'X-Frame-Options'设置为'sameorigin';
- 什么是&QUOT; AW&QUOT;在部分标志属性是什么意思?;
- 在运行npm install命令时获取'npm WARN弃用'警告;
- cmake无法找到openssl;
- 从Spark的scala中的* .tar.gz压缩文件中读取HDF5文件;
- Twitter :: Error :: Forbidden - 无法验证您的凭据;
- 我什么时候需要一个fb:app_id或者fb:admins?;
- 将.db文件导入R;
- npm通知创建一个lockfile作为package-lock.json。你应该提交这个文件;
- 拒绝执行内联脚本,因为它违反了以下内容安全策略指令:“script-src'self'”;