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 @@ 更多+ -