Name
background-image
Werte:
<bg-image> [ , <bg-image> ]*
Einzelwerte:
<bg-image>
<Bild> | none
Anfangswert:
none
Anwendbar auf:
Alle Elemente
Vererbt:
Nein
Berechneter Wert:
Absolute URI
Beschreibung:
Platziert ein Bild bzw. mehrere Bilder im Hintergrund des
Elements. Je nach Wert von background-repeat
wird das Bild unendlich
oft, entlang einer Achse oder gar nicht gekachelt. Das ursprüngliche
Hintergrundbild (das Ursprungsbild) wird gemäß dem Wert von background-position
platziert.
Beispiele:
body { background-image: url(bg41.gif), url(bg43.png), url(bg51.jpg);} h2 {background-image: url(http://www.pix.org/punkte.png);}
Get CSS kurz & gut, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.