<msup>
MathML <msup>
元素用于为表达式加上标。
语法如下:<msup> base superscript </msup>
。
属性
例子
下述代码表示:
您的浏览器的渲染结果:
<math>
<msup>
<mi>X</mi>
<mn>2</mn>
</msup>
</math>
规范
规范 | 状态 | 备注 |
---|---|---|
MathML 3.0 msup |
Recommendation | Current specification |
MathML 2.0 msup |
Recommendation | Initial specification |
浏览器兼容性
BCD tables only load in the browser
Gecko说明
- 从 Gecko 26.0 (Firefox 26 / Thunderbird 26 / SeaMonkey 2.23 / Firefox OS 1.2) 开始,不再支持使用 <none /> 作为子元素。并且渲染结果和
<msub>
和<mmultiscripts>
这些等价配置更加接近,同时修复了一个关于 superscriptshift 属性错误使用的问题(参阅 bug 827713).
参见
<msub>
(下标)<msubsup>
(上下标)<mmultiscripts>
(四角标,张量式标记)