目录

MathML - Overscript( Overscript)

标签用于绘制上标。 它为表达式添加了重音或限制。

语法 (Syntax)

以下是使用此标记的简单语法 -

<mover> base overscript </mover>

参数 (Parameters)

以下是此标记的所有参数的说明 -

  • base - base表达式,用于绘制上标。

  • overscript - 下标。

属性 (Attributes)

以下是此标记的所有属性的说明 -

  • accent - 如果为true,则过度脚本是重音,并且更接近基本表达式。 如果为false,则over-script是对基表达式的限制。 默认值为false。

  • align - 指定过度脚本的对齐方式。 有效的是:左,中,右。

  • class, id, style - 与样式表一起使用。

  • href - 指定指定uri的超链接。

  • mathbackground - 指定背景颜色。 有效格式为#rgb,#rrggbb和html颜色名称。

  • mathcolor - 指定文本颜色。 有效格式为#rgb,#rrggbb和html颜色名称。

例子 (Example)

让我们画一个上标。

<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>

输出 (Output)

x + y + z
↑回到顶部↑
WIKI教程 @2018