代碼
<style>
#area:focus {
background-color: red;
border:none;
}
</style>
<input type="text" name="t1" tabindex="2" />
<input type="text" name="t2" tabindex="3" />
<input type="text" name="t3" tabindex="1" />
<input type="submit" name="t4" value="SendInfo" tabindex="0" />
<div id="area" class="area" tabindex="4">111</div>
當我們使用按·
tab
健切換到下一個輸入框的時候。會按順序tabindex
切換,當?shù)扔?code>-1就不會被聚焦切換文章來源地址http://www.zghlxwxcb.cn/news/detail-526388.html
文章來源:http://www.zghlxwxcb.cn/news/detail-526388.html
到了這里,關于html tabindex使用方法的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!