博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
[HTML5] Using the tabindex attribute for keyboard accessibility
阅读量:5224 次
发布时间:2019-06-14

本文共 796 字,大约阅读时间需要 2 分钟。

You can make any element keyboard interactive with the . But you might need a little extra JavaScript and  to support keyboards and screen readers. For more on using tabindex in practice, check out  lesson.

 

tabindex="0":

Make it accessable by click "tab" on keyboard. 

 

tabindex="-1":

Make it uaccessable by clicking "tab" on keyboard, but still can send fouse by Javascript. Why -1 can be useful. It has pulled it out of the tab order, which is handy if, say, that button is in an inactive screen in a web application or behind a modal window. You might have some reason to pull it out of the tab order, so that a screen reader or keyboard user isn't landing on something that they can't use, for whatever reason.

 

Button

 

转载于:https://www.cnblogs.com/Answer1215/p/6422273.html

你可能感兴趣的文章
第三次作业 105032014021
查看>>
记录一些容易忘记的属性 -- UILabel
查看>>
人脸识别FaceNet+TensorFlow
查看>>
STL之map UVa156
查看>>
从Angular.JS菜鸟到专家
查看>>
再谈Vmware NAT的配置和路由流程
查看>>
javaScript数组去重方法汇总
查看>>
评价意见整合
查看>>
MySQL表的四种分区类型
查看>>
C++变量的“总分性”(Mereology)
查看>>
应用软件学习心得之mapgis功能学习
查看>>
二、create-react-app自定义配置
查看>>
Android PullToRefreshExpandableListView的点击事件
查看>>
关于Matchvs一些使用心得与建议
查看>>
Gson获取json串中的key-value
查看>>
创建spring boot项目
查看>>
Behave + Selenium(Python) 四
查看>>
系统的横向结构(AOP)
查看>>
linux常用命令
查看>>
NHibernate.3.0.Cookbook第四章第6节的翻译
查看>>