有没有办法编写屏幕阅读器会忽略的内容? [英] Is there a way to write content that screen readers will ignore?

查看:26
本文介绍了有没有办法编写屏幕阅读器会忽略的内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开发了一个页面,该页面需要视力和视障用户都可以访问.内容的某些元素,仅​​就与视觉元素相关的性质而言,根本不适用于使用屏幕阅读器的人.例如,一个链接在一个新窗口中打开了一个视听演示,但由于我无法控制的情况,该窗口被笨拙地调整了大小,所以有一条消息说您应该调整窗口大小,以便您可以更好地看到所有内容.显然,这对于无论如何都看不到的人来说是无用的信息.

I've just been working on a page which needs to be accessible to both sighted and visually impaired users. Some elements of the content, just by the nature of relating only to visual elements, simply do not apply to people using screen readers. For example, a link opens an audio-visual presentation in a new window, but due to circumstances beyond my control, the window is awkwardly resized, so there's a message saying that you should resize the window so you can see everything better. Obviously this is useless information to someone who can't see it anyway.

是否有一种可接受的方法可以让屏幕阅读器忽略某些内容?

Is there an accepted way to make screen readers ignore some content?

推荐答案

写到一半的时候我想起了去哪里找.

Halfway through writing the question I remembered where to look.

CSS 可以做到这一点:

CSS can do this:

<span class="dontRead">Screen readers shouldn't read this</span>

.dontRead {
    speak: none;
}

这篇关于有没有办法编写屏幕阅读器会忽略的内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆