Prevent tabstop on A element (anchor link) in HTML

后端 未结 5 746
北荒
北荒 2020-11-29 05:54
5条回答
  •  青春惊慌失措
    2020-11-29 06:09

    Modern, HTML5 compliant, browsers support the [tabindex] attribute, where a value of -1 will prevent the element from being tabbed to.

    If the value is a negative integer
    The user agent must allow the element to be focused, but should not allow the element to be reached using sequential focus navigation.

提交回复
热议问题