控制Tab键切换的顺序可以在标签中加tabIndex,如果要跳过某个内容,可以在该内容标签加tabIndex,设置值为-1
<input type="button" id="b1" tabIndex="1" value="Button1" />
<input type="button" id="b2" tabIndex="-1" value="Button2" />
<input type="button" id="b3" tabIndex="2" value="Button3" />
控制Tab键切换的顺序可以在标签中加tabIndex,如果要跳过某个内容,可以在该内容标签加tabIndex,设置值为-1
<input type="button" id="b1" tabIndex="1" value="Button1" />
<input type="button" id="b2" tabIndex="-1" value="Button2" />
<input type="button" id="b3" tabIndex="2" value="Button3" />