简体   繁体   English

如何在IE中使用屏幕阅读器阅读替代文本

[英]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.

相关问题 如何限制屏幕阅读器不阅读某些文本? - How to restrict screen reader to not read a certain text? 屏幕阅读器 NVDA 读取图像标题和替代。 需要读者只读标题并忽略alt - Screen reader NVDA read image title and alt. Need that the reader read only title and ignore alt 如何防止在屏幕阅读器中阅读冗余文本? - how to prevent redundant text being read in screen reader? 如何确定屏幕阅读器阅读文本的顺序? - How can I determine the order in which text is read by a screen reader? 使用屏幕阅读器文本的优点 - Advantages of using screen reader text 如何使用jQuery启动和停止NVDA屏幕阅读器阅读文本 - How to start and stop NVDA screen reader reading text using jQuery 使用 role=option 时,让屏幕阅读器读出前缀文本和 DOM 内容 - Make Screen Reader read out a prefix text along with DOM contents when using role=option 工具提示屏幕阅读器将读取的文字,但文字在视觉上保持隐藏 - Tooltip screen reader will read text of but text to remain visually hidden 如何以屏幕阅读器仍会阅读文本并向用户指示已禁用的方式“禁用”单选按钮? - How to “disable” a radio button in a way that a screen reader would still read the text and indicate to a user that it is disabled? 如何让屏幕阅读器宣布额外的文字 - How to let screen reader to announce extra text
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM