Вот мой пример кода:< /p>
Код: Выделить всё
:root {
--url: "https://download.unsplash.com/photo-1420708392410-3c593b80d416";
}
body {
background: url(var(--url));
}
Подробнее здесь: https://stackoverflow.com/questions/423 ... s-with-url
Код: Выделить всё
:root {
--url: "https://download.unsplash.com/photo-1420708392410-3c593b80d416";
}
body {
background: url(var(--url));
}