MathML <msubsup>
元素用于为表达式同时附加上角标和下角标。
它的语法如下:<msubsup> base subscript superscript </msubsup>
.
属性
class
、id
、style
- 供样式使用。
href
- Used to set a hyperlink to a specified URI.
mathbackground
- 背景颜色。支持
#rgb
、#rrggbb
和 HTML 颜色名称。 mathcolor
- 文本颜色。支持
#rgb
、#rrggbb
和 HTML 颜色名称。 subscriptshift
- 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
- 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.
示例
示例渲染结果:
当前浏览器中的渲染结果:
<math displaystyle="true">
<msubsup>
<mo> ∫<!-- 积分符号 --> </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
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
参见
<msub>
(上标)<msup>
(下标)<mmultiscripts>
(Prescript 和 tensor indice)