Dieser Inhalt wurde automatisch aus dem Englischen übersetzt, und kann Fehler enthalten. Erfahre mehr über dieses Experiment.

View in English Always switch to English

mathbackground

Deprecated

Avoid using this feature in new projects. Only MathML Core (a subset of MathML Full) is designed to work with web technologies, such as CSS. This feature may be a candidate for removal from web standards or browsers.

Consider using the following features instead: MathML.

Das mathbackground globale Attribut legt die Hintergrundfarbe eines MathML-Elements fest.

Hinweis: Verwenden Sie wann immer möglich CSS zur Gestaltung von MathML. Das mathbackground-Attribut sollte nur für Anwendungen verwendet werden, die CSS nicht verstehen. Falls gesetzt, wird es durch den Wert der CSS-Eigenschaft background-color überschrieben.

Beispiel

html
<math display="block" mathbackground="wheat">
  <msqrt>
    <mi>x</mi>
  </msqrt>
</math>

Syntax

html
<!-- Keyword values -->
<math mathbackground="red">
<math mathbackground="indigo">

<!-- Hexadecimal value -->
<math mathbackground="#bbff00"> <!-- Fully opaque -->
<math mathbackground="#bf0"> <!-- Fully opaque shorthand -->
<math mathbackground="#11ffee00"> <!-- Fully transparent -->
<math mathbackground="#1fe0"> <!-- Fully transparent shorthand -->
<math mathbackground="#11ffeeff"> <!-- Fully opaque -->
<math mathbackground="#1fef"> <!-- Fully opaque shorthand -->

<!-- RGB value -->
<math mathbackground="rgb(255 255 128)"> <!-- Fully opaque -->
<math mathbackground="rgb(117 190 218 / 50%)"> <!-- 50% transparent -->

<!-- HSL value -->
<math mathbackground="hsl(50 33% 25%)"> <!-- Fully opaque -->
<math mathbackground="hsl(50 33% 25% / 75%)"> <!-- 75% opaque, i.e. 25% transparent -->

Werte

<color>

Die einheitliche Farbe des Hintergrunds.

Spezifikationen

Spezifikation
MathML Core
# dfn-mathbackground
  • In MathML 3 und früheren Versionen wurde nur eine begrenzte Menge an Werten unterstützt. Seit MathML Core entspricht die Syntax den CSS <color> Werten.

  • Dieses Attribut wurde für MathML-Anwendungen entworfen, die CSS nicht verstehen. Seit MathML Core wird die Verwendung des entsprechenden CSS empfohlen.

Browser-Kompatibilität

Siehe auch