Dieser Inhalt wurde automatisch aus dem Englischen übersetzt, und kann Fehler enthalten.Erfahre mehr über dieses Experiment.
Property (CSS)
EineCSS-Eigenschaft ist eine Charakteristik (wie Farbe), deren zugehöriger Wert einen Aspekt davon definiert, wie der Browser das Element darstellen soll.
Hier ist ein Beispiel für eine CSS-Regel:
css
/* "div" is a selector indicating that all the div elements *//* in the document will be styled by that rule */div { /* The property "color" with the value "black" indicates */ /* that the text will have the color black */ color: black; /* The property "background-color" with the value "white" indicates */ /* that the background color of the elements will be white */ background-color: white;}