📜  HTML5 MathML 选择属性

📅  最后修改于: 2021-11-08 05:55:52             🧑  作者: Mango

HTML5 中的MathML selection属性用于指定应该用于查看的子元素。该值可以介于 1 和元素的子元素数之间。该属性的默认值为 1,即默认查看所有选项的第一个子元素。 标记接受此属性。

句法:

属性值:该属性具有如上所述和如下所述的单个值:

  • index:它保存要查看的子元素的索引。

下面的示例说明了MathML 选择属性:

例子:

HTML


  

    
        

            GeeksforGeeks         

        

HTML5 MathML selection Attribute

                                                                           25                     10                                                                                5                                                  5                                                                   2                                                  5                                                                            5                     2                                                                                                 35                     14                                                                                7                                                  5                                                                   7                                                  2                                                                            5                     2                                                   

Click the number

       
  


输出:

支持的浏览器: HTML5 MathML selection属性支持的浏览器如下:

  • 火狐