<mroot>

MathML 的 <mroot> 元素用来表示一个有明确根指数的根式。它接受两个参数,语法如下:<mroot> base index </mroot>

属性

class, id, style

样式表使用。

href

用来设置标签点击后跳转的链接。

mathbackground

用来设置标签的背景色,可以使用 #rgb#rrggbb 或者HTML 颜色名

mathcolor

用来设置文字(包括根底数、根指数和根号本身)的颜色,同样可以使用 #rgb#rrggbb 或者HTML 颜色名

例子

下述代码表示: x

您的浏览器的渲染结果: x 3

<math>

 <mroot>
    <mi>x</mi>
    <mn>3</mn>
 </mroot>

</math>

规范

Specification
MathML Core
# radicals-msqrt-mroot

浏览器兼容性

BCD tables only load in the browser

相关链接

  • <msqrt> (Square root without an index)