<msubsup>

MathML <msubsup> 元素用于为表达式同时附加上角标和下角标。

它的语法如下:<msubsup> base subscript superscript </msubsup>.

属性

classidstyle
样式使用。
href
Used to set a hyperlink to a specified URI.
mathbackground
背景颜色。支持 #rgb#rrggbbHTML 颜色名称 (en-US)
mathcolor
文本颜色。支持 #rgb#rrggbbHTML 颜色名称 (en-US)
subscriptshift This deprecated API should no longer be used, but will probably still work.
The minimum space by which to shift the subscript below the baseline of the expression, as a length value.
This attribute is deprecated and will be removed in the future.
superscriptshift This deprecated API should no longer be used, but will probably still work.
The minimum space by which to shift the superscript above the baseline of the expression, as a length value.
This attribute is deprecated and will be removed in the future.

示例

示例渲染结果:x1

当前浏览器中的渲染结果: 0 1

<math displaystyle="true">

  <msubsup>
    <mo> &#x222B;<!-- 积分符号 --> </mo>
    <mn> 0 </mn>
    <mn> 1 </mn>
  </msubsup>

</math>

规范

规范 状态 备注
MathML 3.0
msubsup
Recommendation Current specification
MathML 2.0
msubsup
Recommendation Initial specification

浏览器兼容性

BCD tables only load in the browser

参见