SVG参考手册
属性 | Attributes
tabindex
tabindex
SVG属性,可以控制一个元素是否可获得焦点和定义元件的用于顺序焦点导航的目的,相对顺序。
用法说明
分类 |
没有 |
---|---|
值 |
有效的整数 |
动画 |
没有 |
初始值 |
(没有) |
整数为了连续焦点导航的元素的相对顺序。
例子
<?xml version="1.0"?>
<svg width="300" height="300"
viewBox="0 0 300 300" version="1.1"
xmlns="http://www.w3.org/2000/svg">
<circle cx="60" cy="60" r="15" tabindex="1" />
<circle cx="60" cy="150" r="30" tabindex="3" />
<circle cx="150" cy="60" r="30" tabindex="2" />
<circle cx="150" cy="150" r="60" tabindex="4" />
</svg>
结果
元素
所有的SVG元素都可以使用这个属性。
规范
Specification |
Status |
Comment |
---|---|---|
Scalable Vector Graphics (SVG) 2The definition of 'tabindex' in that specification. |
Candidate Recommendation |
Initial definition |
浏览器兼容性
Feature |
Chrome |
Firefox (Gecko) |
Internet Explorer |
Edge |
Opera |
Safari |
---|---|---|---|---|---|---|
Basic support |
? |
51.0 (51.0) |
? |
? |
? |
? |
Feature |
Android |
Firefox Mobile (Gecko) |
IE Phone |
Opera Mobile |
Safari Mobile |
---|---|---|---|---|---|
Basic support |
? |
51.0 (51.0) |
? |
? |
? |
Edit this page on MDN
© 2005–2017 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/tabindex