From c9a7591552f457681f2ec191e547320722b2c2bc Mon Sep 17 00:00:00 2001 From: dsh <15569653818@163.com> Date: Mon, 8 Apr 2024 09:37:59 +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 --- ruoyi-admin/src/main/resources/templates/home/base.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ruoyi-admin/src/main/resources/templates/home/base.html b/ruoyi-admin/src/main/resources/templates/home/base.html index 9d525fe..8f0e7a2 100644 --- a/ruoyi-admin/src/main/resources/templates/home/base.html +++ b/ruoyi-admin/src/main/resources/templates/home/base.html @@ -81,6 +81,8 @@ display: flex; flex-direction: column; text-align: center; + white-space: nowrap; /* 防止文本换行 */ + text-overflow: ellipsis; /* 显示省略号 */ } .zhuanti li img{ transition: all 0.3s; @@ -277,6 +279,11 @@ flex-wrap:wrap; justify-content: space-around; overflow:auto; + } + .lantieContent .right li{ + white-space: nowrap; /* 防止文本换行 */ + overflow: hidden; /* 隐藏溢出的部分 */ + text-overflow: ellipsis; /* 显示省略号 */ } .lianjieBox{ width:100%;