המאפיין background
מאפיין זה מגדיר את הרקע של התגית לדוגמה: צבע ותמונה. אפשר להגדיר כמה רקעים בו זמנית.
דוגמא: קביעת רקע עם כל הערכים
הערך שנבדק | Chrome | Firefox | EdgeC | Opera |
---|---|---|---|---|
left top repeat scroll padding-box border-box rgb(186, 186, 242) | ✔️ | ✔️ | ✔️ | ✔️ |
left top | ✔️ | ✔️ | ✔️ | ✔️ |
left center | ✔️ | ✔️ | ✔️ | ✔️ |
left bottom | ✔️ | ✔️ | ✔️ | ✔️ |
right top | ✔️ | ✔️ | ✔️ | ✔️ |
right center | ✔️ | ✔️ | ✔️ | ✔️ |
right bottom | ✔️ | ✔️ | ✔️ | ✔️ |
center top | ✔️ | ✔️ | ✔️ | ✔️ |
center center | ✔️ | ✔️ | ✔️ | ✔️ |
center bottom | ✔️ | ✔️ | ✔️ | ✔️ |
repeat | ✔️ | ✔️ | ✔️ | ✔️ |
repeat-x | ✔️ | ✔️ | ✔️ | ✔️ |
repeat-y | ✔️ | ✔️ | ✔️ | ✔️ |
space | ✔️ | ✔️ | ✔️ | ✔️ |
round | ✔️ | ✔️ | ✔️ | ✔️ |
no-repeat | ✔️ | ✔️ | ✔️ | ✔️ |
padding-box | ✔️ | ✔️ | ✔️ | ✔️ |
border-box | ✔️ | ✔️ | ✔️ | ✔️ |
content-box | ✔️ | ✔️ | ✔️ | ✔️ |
scroll | ✔️ | ✔️ | ✔️ | ✔️ |
fixed | ✔️ | ✔️ | ✔️ | ✔️ |
local | ✔️ | ✔️ | ✔️ | ✔️ |
black | ✔️ | ✔️ | ✔️ | ✔️ |
silver | ✔️ | ✔️ | ✔️ | ✔️ |
gray | ✔️ | ✔️ | ✔️ | ✔️ |
white | ✔️ | ✔️ | ✔️ | ✔️ |
maroon | ✔️ | ✔️ | ✔️ | ✔️ |
red | ✔️ | ✔️ | ✔️ | ✔️ |
purple | ✔️ | ✔️ | ✔️ | ✔️ |
fuchsia | ✔️ | ✔️ | ✔️ | ✔️ |
green | ✔️ | ✔️ | ✔️ | ✔️ |
lime | ✔️ | ✔️ | ✔️ | ✔️ |
olive | ✔️ | ✔️ | ✔️ | ✔️ |
yellow | ✔️ | ✔️ | ✔️ | ✔️ |
navy | ✔️ | ✔️ | ✔️ | ✔️ |
blue | ✔️ | ✔️ | ✔️ | ✔️ |
teal | ✔️ | ✔️ | ✔️ | ✔️ |
aqua | ✔️ | ✔️ | ✔️ | ✔️ |
transparent | ✔️ | ✔️ | ✔️ | ✔️ |
revert | ✔️ | ✔️ | ✔️ | ✔️ |
revert-layer | ✔️ | ✔️ | ✔️ | ✔️ |
unset | ✔️ | ✔️ | ✔️ | ✔️ |
inherit | ✔️ | ✔️ | ✔️ | ✔️ |
initial | ✔️ | ✔️ | ✔️ | ✔️ |
דוגמא: קביעת רקע עם קובץ בדומיין הנוכחי