<msup>

Baseline 2023
Newly available

Since January 2023, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.

Das <msup> MathML-Element wird verwendet, um einem Ausdruck einen hochgestellten Index anzufügen.

Es verwendet die folgende Syntax: <msup> base superscript </msup>.

Attribute

Die Attribute dieses Elements umfassen die globalen MathML-Attribute sowie das folgende veraltete Attribut:

superscriptshift Veraltet Nicht standardisiert

Ein <length-percentage>, das die minimale Menge angibt, um die Basislinie des Hochgestellten nach oben zu verschieben.

Hinweis: Für das superscriptshift-Attribut können einige Browser auch veraltete MathML-Längen akzeptieren.

Beispiele

html
<math display="block">
  <msup>
    <mi>X</mi>
    <mn>2</mn>
  </msup>
</math>

Technische Zusammenfassung

Spezifikationen

Specification
MathML Core
# subscripts-and-superscripts-msub-msup-msubsup

Browser-Kompatibilität

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
msup
superscriptshift
DeprecatedNon-standard

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.

Siehe auch