<msup>
MathML の <msup>
要素は,式に上付きを付けるために用います。
構文は <msup> base superscript </msup>
となります。
属性
- class, id, style
- Provided for use with stylesheets.
- href
- Used to set a hyperlink to a specified URI.
- mathbackground
- The background color. You can use
#rgb
,#rrggbb
and HTML color names. - mathcolor
- The text color. You can use
#rgb
,#rrggbb
and HTML color names. - superscriptshift
- 上付き部分を本体のベースラインから持ち上げる最小の量を length value. (en-US) で指定します。
例
Sample rendering:
Rendering in your browser:
<math>
<msup>
<mi>X</mi>
<mn>2</mn>
</msup>
</math>
ブラウザ毎の互換性
BCD tables only load in the browser
Gecko-specific notes
- Starting with Gecko 26.0 (Firefox 26 / Thunderbird 26 / SeaMonkey 2.23 / Firefox OS 1.2) it is no longer possible to use
<none />
as a child element. The rendering has been made more consistent with equivalent configurations of<msub>
and<mmultiscripts>
and a bug with an incorrect application ofthe superscriptshift
attribute has been fixed (see バグ 827713 for details).
仕様
Specification | Status | Comment |
---|---|---|
MathML 3.0 msup の定義 |
勧告 | Current specification |
MathML 2.0 msup の定義 |
勧告 | Initial specification |
See also
<msub>
(Subscript)<msubsup>
(Subscript-superscript pair)<mmultiscripts>
(Prescripts and tensor indices)