From c057fb2f1d5bb0f3d252f7eaf07513f5a5d7b1e3 Mon Sep 17 00:00:00 2001 From: "DESKTOP-RQ919RC\\Pc" <1300399510@qq.com> Date: Mon, 8 Dec 2025 11:21:13 +0800 Subject: [PATCH] =?UTF-8?q?style(css):=20=E4=BC=98=E5=8C=96.award=20.name?= =?UTF-8?q?=E5=85=83=E7=B4=A0=E7=9A=84=E5=B0=BA=E5=AF=B8=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 调整.name元素的高度和宽度属性,使用max-height和max-width替代固定高度,并添加width: 100%和height: 100%使其更灵活适应不同尺寸 --- static/css/index.css | 5 ++++- static/css/index.less | 6 ++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/static/css/index.css b/static/css/index.css index dbf47ff..5c730f3 100644 --- a/static/css/index.css +++ b/static/css/index.css @@ -89,8 +89,11 @@ margin-bottom: 25px; } .content .introduce .box .info .award .name { - height: 65px; + max-height: 65px; + max-width: 340px; margin-bottom: 30px; + width: 100%; + height: 100%; } .content .introduce .box .info .award .explain { font-family: "PingFangSC-Regular", "PingFang SC", sans-serif; diff --git a/static/css/index.less b/static/css/index.less index 109297c..c8181fe 100644 --- a/static/css/index.less +++ b/static/css/index.less @@ -101,9 +101,11 @@ } .name { - // width: min-content; - height: 65px; + max-height: 65px; + max-width: 340px; margin-bottom: 30px; + width: 100%; + height: 100%; } .explain {