我有一个带有role="listitem"的div元素。它包含多个div和一些文本在里面。当他专注的时候,我想要一个定制的咏叹调标签,而不是内在的文本。下面是我的示例代码:
<div role="listitem" aria-label="Hello World" tab-index="0">
<div> A </div> <div> b </div> <div> c </div> <div> d </div>
&
我正在研究一个网站的一部分,它使用一个普通的符号来表示一个特定的文本,但不希望屏幕阅读器读取这个符号,而是描述这个符号的含义。
例如:
你会得到一个免费的iPad∞。
∞的意思是“如果你赢了比赛”。此文本显示在网站的其他地方。
在资料来源中,我有以下几点:
You'll get a free iPad<acronym title="If you win the contest"><span aria-hidden="true">∞</span></acronym>
这在Chrom
下面是我的示例代码,当用户单击箭头时,NVDA正在读取可点击的部分.
<section>
<p>How would you like to pay?</p>
<form>
<input type="text"/>
<button type="submit">Add</button>
</form>
</section>
我在某个地方看到NVDA认为<section>是可点击的,因此我尝试将<section>更改为<div>
我正在为残疾人工作的应用程序中,NVDA屏幕阅读器应该读出当前的日期,如果用户点击元素(日期选择器/日历/分裂)与标签。当从页面顶部到底部导航时,NVDA忽略aria=current=" date“(不会读出为当前日期),但从页面顶部导航时会读出相同的日期。
代码片段的引用:
<tag
attribute1
attribute2
aria-current="date"
>
<input /calendar (could be calendar in place of input)
attribute1
type="date"
a
在我们的网站中,有一个div元素,它的角色是"dialog“,还有一个aria-label属性。
它适用于以下组合:
Voice Over + Google Chrome / Mozilla Firefox / Safari
NVDA + Google Chrome / Mozilla Firefox / Internet Explorer
但是,当我们使用以下命令时,它会被完全忽略:
NVDA + Microsoft Edge(*)
(*)它实际上可以在旧版本的Edge (38)上运行,但不能在最新版本: 42上运行。
这是元素:
<div role="dialog
本文中有h2标记。我的目标是使用H2标签作为目录。
有什么方法可以获得这些标记,因为H2标记在本文中吗?我尝试了一些方法,比如替换、子字符串,但是我无法只获得h2标记。
这篇文章的内容是这样的
{
"link": "http://wordpress.example.com/2022/02/16/example/",
"title": { "rendered": "This is a test blog post" },
"content": {
"rendered": "
我有一个场景,其中我向父aria-label添加了一个<div>,其中包含了一些文本。理想情况下,应该首先讲述提供给父aria-label的<div>,然后再讲述子文本组件。这在MacOS Chrome和VoiceOver屏幕阅读器上工作得很好,但在Windows上,与NVDA的母公司<div> aria-label完全不被读取。
附加代码片段以供参考:
<div aria-label="Parent div accessibility">
<Text> Some Text </Text>
&l