tabindex
tabindex
属性可让您控制元素是否可聚焦,并定义元素在顺序聚焦导航中的相对顺序。
您可以将此属性与任何 SVG 元素一起使用。
示例
html
<?xml version="1.0"?>
<svg viewBox="0 0 260 260" xmlns="http://www.w3.org/2000/svg">
<circle r="10" tabindex="0" fill="green" cx="60" cy="60" />
<circle r="40" tabindex="0" fill="red" cx="60" cy="160" />
<circle r="60" tabindex="0" fill="blue" cx="160" cy="60" />
<circle r="20" tabindex="0" fill="black" cx="160" cy="160" />
</svg>
用法说明
值 | 有效整数 |
---|---|
默认值 | None |
可动画的 | 否 |
- 有效整数
-
元素在顺序聚焦导航中的相对顺序。
规范
规范 |
---|
Scalable Vector Graphics (SVG) 2 # tabindex 属性 |
浏览器兼容性
加载中…