From 5c3a5858f3a07a7d2290da63f6db23554dfe2686 Mon Sep 17 00:00:00 2001 From: heshunme Date: Mon, 15 Jul 2024 01:27:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3CSS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/resources/css/styles.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/webapp/resources/css/styles.css b/src/main/webapp/resources/css/styles.css index 5f161bd..cd70c92 100644 --- a/src/main/webapp/resources/css/styles.css +++ b/src/main/webapp/resources/css/styles.css @@ -16,7 +16,7 @@ body { height: 100%; display: flex; flex-direction: column; - background: rgba(244, 244, 244, 0) url("/web_assignment_war_exploded/resources/images/background.jpg") no-repeat center center fixed; + background: rgba(244, 244, 244, 0) url("#{facesContext.externalContext.requestContextPath}/resources/images/background.jpg") no-repeat center center fixed; background-size: cover; /* Ensures the background image covers the entire area without distortion */ }