[英]How to read alt text using a screen reader in IE
I am using NVDA and I want to know why my img
elements alt text are not being read by the screen reader. 我正在使用NVDA,我想知道为什么屏幕阅读器无法读取我的img
元素alt文本。 By being read I mean as in listening to the screen reader telling the alt text contents back to me. 通过阅读,我的意思是像在听屏幕阅读器一样,将替代文本内容告诉我。
Good to know : every other browser (Chrome, FireFox, Safari, others) have had no issues doing this, except for IE. 提提您 :除IE之外,其他所有浏览器(Chrome,FireFox,Safari,其他)都没有问题。
I have the following dummy HTML code to share with you. 我有以下虚拟HTML代码可与您分享。
<img id="sample_image" src="http://placehold.it//100x100" type="image" alt="An example image" tabindex="0"/>
For your information: tabindex="0"
is in place so I can use keyboard focus on it, it matters to me. 供您参考: tabindex="0"
到位,因此我可以在其上使用键盘焦点,这对我来说很重要。
I have read the documents on the matter of image alt text in E, image tag accessibility in IE, among other inquiries. 我已经阅读了有关E中的图像替换文本,IE中的图像标签可访问性的文档,以及其他查询。 Sadly I have hit a roadblock and I am stuck trying to figure out what is wrong with IE. 可悲的是,我遇到了一个障碍,我一直试图找出IE出了什么问题。
Any feedback as to why this is the case would be great! 关于为什么会这样的任何反馈都是很棒的!
Open Internet Options , switch to tab Advanced and check the Accessibility option Always expand ALT text for images . 打开“ Internet选项” ,切换到“ 高级”选项卡,然后选中“ 辅助功能”选项“ 始终展开图像的ALT文本” 。
This is recommended on Microsoft article Accessibility in Internet Explorer 9 for screen readers. 在屏幕阅读器的 Microsoft文章Internet Explorer 9中的辅助功能上,建议使用此功能 。 This setting is recognized by all versions of Internet Explorer. 所有版本的Internet Explorer均可识别此设置。
You may need to uncheck option Show pictures under Multimedia also on tab Advanced of the Internet Options as the Microsoft page Accessibility in Internet Explorer 11 additionally recommends. 您可能需要取消选中“ Internet选项 ”的“ 高级 ”选项卡上的“在多媒体下也显示图片 ” 选项 ,这是Internet Explorer 11中 Microsoft页面辅助功能的额外建议。
I have this option also enabled although not using a screen reader to get the alternate text displayed as tooltip. 尽管未使用屏幕阅读器来显示替代文本作为工具提示,但我也启用了此选项。
尝试使用aria-label
属性(与alt
属性结合使用)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.