Ich habe eine CSS-Regel, die Sie stattdessen verwenden können.
I included a CSS rule that you can use instead.
Eine CSS-Regel ist ein Satz von Eigenschaften, verbunden mit einem Selektor.
A CSS rule is a set of properties associated with a selector.
Eine CSS-Regel besteht aus einem Selektor und einer oder mehrerer Deklarationen.
A CSS rule consists of a selector and one or more declarations.
Die eigentlich simple Aufgabe, eine CSS-Regel per Skript zu verändern, besteht aus zwei Teilen.
The task of modifying a CSS rule by a script should be simple.
Eine CSS-Regel enthält einen unzulässigen Eigenschaftswert.
A CSS rule contains a forbidden property value.
Über eine CSS-Regel lässt sich das Rechteck entfernen.
You can remove it using a CSS rule.
Sie können mithilfe der im vorherigen Abschnitt beschriebenen Methode Ihre eigene CSS-Regel für dieses Element hinzufügen.
You can add your own CSS rule for this element using the method described in the previous section.
Legt eine neue, leere Zeile am Ende der Liste an, in der Sie eine vorhandene CSS-Regel hinzufügen können.
Creates a new, empty line at the end of the list to which you can add an available CSS rule.
Wenn wir bevorzugen, die letzte Deklaration einer CSS-Regel nicht mit einem Semikolon zu beenden, dann sollten wir das auch nicht tun.
If we prefer not to end the last declaration in a CSS rule with a semicolon, we should not do so.
Eine CSS-Regel braucht nur an einem einzigen Ort geändert zu werden, um die Formatierung aller Elemente, die den in ihr definierten Stil verwenden, automatisch zu aktualisieren.
When you update a CSS rule in one place, the formatting of all the elements that use the defined style are automatically updated to the new style.
Versuchen Sie es gleich einmal, indem Sie versuchen herauszufinden, was die folgende CSS-Regel bewirkt
You could try it right now by figuring out what the following CSS rule does
Das wäre natürlich möglich, indem wir eine CSS-Regel für das Element h1 definieren würden.
That would obviously be possible by defining a CSS rule for the h1 element like this
5.1.3 Struktur einer CSS-Regel verstehen: Selektor und Deklaration (Eigenschaft, Wert)
Understand the structure of a CSS rule: selector and declaration (property, value).