而不是
gpt4 book ai didi

html - 而不是

转载 作者:太空狗 更新时间:2023-10-29 15:53:16 29 4
gpt4 key购买 nike

最佳答案

I tried to use NVDA and I press B (a shortcut to find buttons in website), and the only button that it found is the button with tag. What role="button" is being used? What is the correct way?

ARIA 角色的浏览器支持和行为可能因浏览器/屏幕阅读器组合而异。

您应该使用 native <button>元素。

记住ARIA的第一条和第二条规则:

第一条规则:

If you can use a native HTML element or attribute with the semantics and behavior you require already built in, instead of re-purposing an element and adding an ARIA role, state or property to make it accessible, then do so.

第二条规则:

Do not change native semantics, unless you really have to.

关于html - <a role ="button"> 而不是 <button>,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48119478/

29 4 0
太空狗
个人简介

我是一名优秀的程序员,十分优秀!

滴滴打车优惠券免费领取
滴滴打车优惠券
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com