<msup>
Baseline 2023Newly available
Since January 2023, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
<msup>
は MathML の要素で、式に上付き文字を付けるために用います。
<msup> ベース 上付き文字 </msup>
という構文を使用します。
属性
この要素の属性には、グローバル MathML 属性の他、以下の非推奨属性があります。
superscriptshift
非推奨; 非標準-
<length-percentage>
で、上付き文字のベースラインを上に移動させる最小量を示します。
メモ: superscriptshift
属性については、ブラウザーによっては古い MathML の長さも受け入れられるかもしれません。
例
html
<math display="block">
<msup>
<mi>X</mi>
<mn>2</mn>
</msup>
</math>
仕様書
Specification |
---|
MathML Core # subscripts-and-superscripts-msub-msup-msubsup |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
msup | ||||||||||||
superscriptshift |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- Non-standard. Check cross-browser support before using.
- Deprecated. Not for use in new websites.
The compatibility table on 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>
(下付き文字)<msubsup>
(上付き文字と下付き文字の組)<mmultiscripts>
(前付き文字とテンソルインデックス)