xml/html code复制内容到剪贴板 <!doctype html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <p tabindex="-1"> <a href="#" tabindex="3">hello</a> <a href="#" tabindex="1">hel</a> <a href="#" tabindex="2">hell</a> </p> </body> </html>
显示效果:
ps:
•tabindex的跳转顺序为从小到大。如果直接点击模块中的tabindex序数最大的选项,则跳转到他处,或者不跳转。
以上就是html5之全面解析tabindex属性的详细内容。
