<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: x1

Rendering in your browser: X 2

<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 of the 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