tabindex 带有指定 tab 键顺序 或焦点 focus

登录注册时,文本框输入焦点 TAB 键时,自定义下一个焦点的顺序

<input type="text" tabindex="1" />
<input type="text" tabindex="2" />

带有指定 tab 键顺序的链接:

<a href="http://www.w3school.com.cn/" tabindex="2">W3School</a>
<a href="http://www.google.com/" tabindex="1">Google</a>
<a href="http://www.microsoft.com/" tabindex="3">Microsoft</a>

 

http://www.w3school.com.cn/tags/att_standard_tabindex.asp

posted @ 2017-04-20 11:33  James2019  阅读(867)  评论(0编辑  收藏  举报