让Jaws读取页面元素的最佳方法(Best way to make JAWS read an embedded iframe's content)

编程入门 行业动态 更新时间:2024-10-25 19:28:52
让Jaws读取页面元素的最佳方法(Best way to make JAWS read an embedded iframe's content)

我正在尝试更改网页中的iframe内容,并希望Jaws屏幕阅读器只读取该内容。

为此,我使用了jQuery("#vn_space").focus();

但这似乎并不适用于所有浏览器。 对于IE9,Jaws不读取链接作为“链接”,而在FF中它根本不读取iframe内容。

我该怎么做才能使大白鲨正确阅读改变后的内容?

I'm trying to change the content of an iframe in a webpage and want JAWS screen reader to read only that content.

For this, I have used jQuery("#vn_space").focus();

But this doesn't seem to work properly in all browsers. In IE9, JAWS is not reading links as 'links', and in FF, it is not reading the iframe's content at all.

What should I do to make JAWS read the changed content properly?

最满意答案

你尝试在你的HTML中使用属性tabindex吗? 可能值得给aria-label和角色试试看它是否有助于解决这个问题。

Have you tried using the attribute tabindex in your HTML? It may be worthwhile to give aria-label and role a try, too, to see if they help with the issue.

更多推荐

本文发布于:2023-04-29 09:03:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1335966.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:元素   页面   方法   Jaws   JAWS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!