首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

tabindex

tabindexSVG属性,可以控制一个元素是否可获得焦点和定义元件的用于顺序焦点导航的目的,相对顺序。

用法说明

分类

没有

有效的整数

动画

没有

初始值

(没有)

整数为了连续焦点导航的元素的相对顺序。

例子

代码语言:javascript
复制
<?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)

?

?

?

代码语言:txt
复制
 ? 2005–2017 Mozilla Developer Network and individual contributors.

Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com