From b982dc33d078e11dafcbe1c07a58d7c7de9cf567 Mon Sep 17 00:00:00 2001 From: dsh <15569653818@163.com> Date: Mon, 8 Apr 2024 10:27:25 +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 --- .../src/main/resources/templates/home/base.html | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/ruoyi-admin/src/main/resources/templates/home/base.html b/ruoyi-admin/src/main/resources/templates/home/base.html index 8f0e7a2..4e19817 100644 --- a/ruoyi-admin/src/main/resources/templates/home/base.html +++ b/ruoyi-admin/src/main/resources/templates/home/base.html @@ -83,7 +83,14 @@ text-align: center; white-space: nowrap; /* 防止文本换行 */ text-overflow: ellipsis; /* 显示省略号 */ + }.zhuanti li span{ + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; + max-width: 286px; + display: inline-block; } + .zhuanti li img{ transition: all 0.3s; } @@ -280,10 +287,11 @@ justify-content: space-around; overflow:auto; } - .lantieContent .right li{ - white-space: nowrap; /* 防止文本换行 */ - overflow: hidden; /* 隐藏溢出的部分 */ - text-overflow: ellipsis; /* 显示省略号 */ + .lantieContent .right li span{ + white-space: nowrap; + text-overflow: ellipsis; + max-width: 190px; + overflow: hidden; } .lianjieBox{ width:100%;