From 8ef135d20f659279a5eb2b54eb74f3ec3c98516d Mon Sep 17 00:00:00 2001 From: dshclm <3321914460@qq.com> Date: Mon, 15 Jul 2024 15:08:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/templates/home/base.html | 91 ++++++++++++++++--- 1 file changed, 77 insertions(+), 14 deletions(-) diff --git a/ruoyi-admin/src/main/resources/templates/home/base.html b/ruoyi-admin/src/main/resources/templates/home/base.html index b3784f5..c1223ef 100644 --- a/ruoyi-admin/src/main/resources/templates/home/base.html +++ b/ruoyi-admin/src/main/resources/templates/home/base.html @@ -79,12 +79,9 @@ flex-wrap: wrap; align-items: center; height: 400px; - overflow:hidden; + justify-content: center; } .zhuanti li{ - margin:9px; - margin-bottom: -7px; - margin-top: 20px; overflow:hidden; display: flex; flex-direction: column; @@ -92,6 +89,9 @@ white-space: nowrap; /* 防止文本换行 */ text-overflow: ellipsis; /* 显示省略号 */ position: relative; + width: 259px; + border-radius: 5px; + }.zhuanti li span{ white-space: nowrap; text-overflow: ellipsis; @@ -99,20 +99,27 @@ display: inline-block; width: 100%; position: absolute; - bottom: 0; + bottom: 20px; height: 25px; line-height: 25px; background-color: rgb(0 0 0 / 0.7); color: white; + border-radius: 5px; } .zhuanti li img{ transition: all 0.3s; + width: 100%; + border-radius: 5px; } .zhuanti li:hover img{ transform:scale(1.1) } + .zhuanti li span{ + transition: all 0.3s; + } .zhuanti li:hover span{ color: #ffbb3f; + transform:scale(1.1) translateY(7px); } .more a { display: inline-block; @@ -757,15 +764,20 @@ 更多+ -