<mspace>

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 <mspace> MathML Element wird verwendet, um einen leeren Raum darzustellen, dessen Größe durch seine Attribute festgelegt wird.

Attribute

Die Attribute dieses Elements umfassen die globalen MathML Attribute sowie die folgenden Attribute:

depth

Ein <length-percentage>, das die gewünschte Tiefe (unter der Grundlinie) des Raumes angibt.

height

Ein <length-percentage>, das die gewünschte Höhe (über der Grundlinie) des Raumes angibt.

width

Ein <length-percentage>, das die gewünschte Breite des Raumes angibt.

Hinweis: Für die Attribute depth, height, width können einige Browser auch veraltete MathML-Längen akzeptieren.

Beispiele

html
<math display="block">
  <mn>1</mn>
  <mspace
    depth="40px"
    height="20px"
    width="100px"
    style="background: lightblue" />
  <mn>2</mn>
</math>

Technische Zusammenfassung

Spezifikationen

Specification
MathML Core
# space-mspace

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
mspace
depth
height
Named spaces (e.g. thinmathspace to mean 3/18em) for width, height and depth attributes
DeprecatedNon-standard
width

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.
See implementation notes.

Siehe auch