美文网首页
如何控制表单 input tab键切换的顺序

如何控制表单 input tab键切换的顺序

作者: 一代码农1970 | 来源:发表于2019-11-12 19:16 被阅读0次

在Html代码中有一个键盘属性——tabindex,它可以设置访问者在页面中按tab键的顺序。

<input tabindex="1" value="" placeholder="用户名"/>
<input tabindex="2" value="" placeholder="密码"/>
<input tabindex="3" value="" placeholder="验证码"/>

相关文章

网友评论

      本文标题:如何控制表单 input tab键切换的顺序

      本文链接:https://www.haomeiwen.com/subject/eggqictx.html