<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 已弃用

The minimum space by which to shift the subscript below the baseline of the expression, as a length value. (en-US) This attribute is deprecated and will be removed in the future.

superscriptshift 已弃用

The minimum space by which to shift the superscript above the baseline of the expression, as a length value. (en-US) 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>

规范

Specification
MathML Core
# subscripts-and-superscripts-msub-msup-msubsup

浏览器兼容性

BCD tables only load in the browser

参见