Tabindex爲1的元素會首先被選中,然後依次2、3。如果設置爲-1則不會被選中
以下是一個簡單的示例
<form>
<label>Name:<input type="text" name="name" tabindex="1"/></label></p>
<label>City:<input type="text" name="city" tabindex="-1"/></label></p>
<label>Country:<input type="text" name="country" tabindex="2"/></label></p>
<input type="submit" tabindex="3"/>
</form>
跳轉順序:第一個 ——> 第三個 ——> 第四個
第二個不會被選中