From b9f52bd2fc436a8260ccab591319526ff94bb90d Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Thu, 2 Nov 2023 13:21:25 +0800 Subject: fixed image not loading as expecting --- src/css/ghrepo.css | 3 +-- src/css/index.css | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'src/css') diff --git a/src/css/ghrepo.css b/src/css/ghrepo.css index 38a4af18..ea104d8c 100644 --- a/src/css/ghrepo.css +++ b/src/css/ghrepo.css @@ -52,8 +52,7 @@ margin-top: 3em width: 100%; height: 100%; background-color: rgb(48, 60, 100); - background-image: url(/images/heigh-grass.webp); - background-image: url(/images/heigh-grass.jpg); + background-image: url(/images/heigh-grass.jpg), url(/images/heigh-grass.webp); background-position: center; background-repeat: no-repeat; background-size: cover; diff --git a/src/css/index.css b/src/css/index.css index 9c741ad3..f1e29f41 100644 --- a/src/css/index.css +++ b/src/css/index.css @@ -25,8 +25,7 @@ width: 100%; height: 100%; background-color: rgb(20, 53, 85); - background-image: url(/images/backgroundNightCity.webp); - background-image: url(/images/backgroundNightCity.jpg); + background-image: url(/images/backgroundNightCity.jpg) ,url(/images/backgroundNightCity.webp); background-position: center; background-repeat: no-repeat; background-size: cover; -- cgit v1.2.3