MathML - 上标
<mover> 标签用于绘制上标。它在表达式上添加重音或限制。
语法
以下是使用此标签的简单语法 −
<mover> base overscript </mover>
参数
以下是此标签所有参数的说明 −
base − 上标要绘制在其上的基准表达式。
overscript − 上标。
属性
以下是此标签的所有属性的描述 −
accent − 如果为 true,上标就是重音,并且绘制得更接近基准表达式。如果为 false,上标就是基准表达式的限制。默认为 false。
align − 指定上标的对齐方式。有效值为:left、center 和 right。
class, id, style −与样式表一起使用。
href − 指定指向指定 uri 的超链接。
mathbackground − 指定背景颜色。有效格式为 #rgb、#rrggbb 和 html 颜色名称。
mathcolor − 指定文本颜色。有效格式为 #rgb、#rrggbb 和 html 颜色名称。
示例
让我们绘制一个上标。
<math xmlns = "http://www.w3.org/1998/Math/MathML"> <mover accent = "true"> <mrow> <mi> x </mi> <mo> + </mo> <mi> y </mi> <mo> + </mo> <mi> z </mi> </mrow> <mo>⏞</mo> </mover> </math>