下面是我的示例代码,当用户单击箭头时,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>标记,如下所示:
<div>
<p>How would you like to pay?</p>
<form>
<input type="text"/>
<button type="submit">Add</button>
</form>
</div>但这个问题仍然存在。它的内容如下:
点击,你想怎样付款?
不应将<div>视为可点击的。
发布于 2020-12-18 06:34:05
如果存在与https://github.com/nvaccess/nvda/issues/5830元素相关联的鼠标事件,则NVDA读取“可单击”。
发布于 2019-11-13 04:30:58
一种解决方案是在段落标记上设置tabindex=0。
发布于 2022-03-17 14:19:14
这是一项工作。在节标记中添加:
<section role="presentation">请阅读以下内容:
https://www.accessibility-developer-guide.com/examples/sensible-aria-usage/presentation/
https://stackoverflow.com/questions/58640987
复制相似问题