📜  CSS |导航索引属性

📅  最后修改于: 2021-08-30 09:45:32             🧑  作者: Mango

CSS导航索引定义了每个元素的顺序导航顺序。与其他导航属性相同,不包含 target-name 属性。仅 Opera 12.0 支持 CSS导航索引。
句法:

nav-index: auto | number | initial | inherit;

属性:

  • auto:这是浏览器定义顺序的默认值。
  • number:它定义了元素的跳转顺序。
  • initial:这是默认值。
  • 继承:它从其父元素继承。

下面的示例说明了 nav-index 属性:
例子:



  

    CSS nav-index Property
    
    

  

    
        

GeeksforGeeks

        

CSS nav-index Property

        

            Press the Shift            key while navigating with the arrow keys.         

    
                           
       
  

输出:

支持的浏览器: CSS nav-index属性不支持主流浏览器

浏览器特定扩展: css nav-index 属性具有浏览器特定扩展。

  • 谷歌浏览器-webkit-
  • Internet Explorer -ms-
  • 火狐-moz-
  • Safari -webkit-
  • 歌剧-webkit-