displaystyle

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 displaystyle globale Attribut ist eine boolesche Einstellung, die den math-style eines MathML-Elements festlegt.

Beispiel

In diesem Beispiel wird ein munder-Element verwendet, um ein Skript "A" an eine Basis "∑" anzuhängen. Standardmäßig wird das Summensymbol mit der vom übergeordneten Element geerbten font-size dargestellt und das "A" als verkleinertes Subscript. Mit dem expliziten displaystyle="true"-Attribut wird das Summensymbol stattdessen größer gezeichnet und das "A" wird zu einem Unterscript.

html
<math>
  <munder>
    <mo></mo>
    <mi>A</mi>
  </munder>
  <munder displaystyle="true">
    <mo></mo>
    <mi>A</mi>
  </munder>
</math>

Syntax

html
<math displaystyle="true">
<math displaystyle="false">

Werte

true

Setzt den Anzeige-Stil auf normal.

false

Setzt den Anzeige-Stil auf compact.

Spezifikationen

Specification
MathML Core
# dfn-displaystyle

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
displaystyle

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
See implementation notes.

Siehe auch