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%;