<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>html tabindex 属性</title>
</head>
<body>
<script>
/*
参考:https://www.w3school.com.cn/tags/att_standard_tabindex.asp
知识点:
1.<element tabindex="number">
number 规定元素的 tab 键控制次序(1 是第一个)。
tabindex 属性规定元素的 tab 键控制次序(当 tab 键用于导航时)。
以下元素支持 tabindex 属性:
<a>, <area>, <button>, <input>, <object>, <select> 以及 <textarea>。
*/
</script>
<a href="http://www.w3school.com.cn/" tabindex="2">W3School</a><br/>
<a href="http://www.google.com/" tabindex="1">Google</a><br/>
<a href="http://www.microsoft.com/" tabindex="3">Microsoft</a>
<p><b>注释:</b>请尝试使用键盘上的 "Tab" 键在链接之间进行导航。</p>
</body>
</html>
html tabindex 属性.html
最新推荐文章于 2024-06-07 15:27:23 发布
499

被折叠的 条评论
为什么被折叠?



