From 6ee511a574c13adb56a296015365c8d902381261 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E7=99=BD?= Date: Thu, 12 Mar 2026 11:40:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=B8=BB=E9=A2=98?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E9=97=AA=E7=83=81=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 transition: all 改为 transition: transform, box-shadow, background - 避免 transition 影响位置属性(top/right)导致闪烁 - 更新 CSS 版本号 --- static/css/style.css | 4 ++-- templates/index.html | 2 +- templates/login.html | 2 +- templates/register.html | 2 +- templates/welcome.html | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/static/css/style.css b/static/css/style.css index 4c64246..2128b62 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -268,7 +268,7 @@ h1 { color: white; font-size: 24px; cursor: pointer; - transition: all 0.3s ease; + transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); z-index: 100; display: flex; @@ -299,7 +299,7 @@ h1 { color: white; font-size: 20px; cursor: pointer; - transition: all 0.3s ease; + transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15); display: flex; align-items: center; diff --git a/templates/index.html b/templates/index.html index 84f0c59..82ff050 100644 --- a/templates/index.html +++ b/templates/index.html @@ -4,7 +4,7 @@ 欢迎 - 云下飞 - +
diff --git a/templates/login.html b/templates/login.html index 8a003a0..f8befa4 100644 --- a/templates/login.html +++ b/templates/login.html @@ -4,7 +4,7 @@ 登录 - 云下飞 - +
diff --git a/templates/register.html b/templates/register.html index b41f59e..b6cee62 100644 --- a/templates/register.html +++ b/templates/register.html @@ -4,7 +4,7 @@ 注册 - 云下飞 - +
diff --git a/templates/welcome.html b/templates/welcome.html index 94adec1..bca5e2d 100644 --- a/templates/welcome.html +++ b/templates/welcome.html @@ -4,7 +4,7 @@ 欢迎回来 - {{ username }} - +