From 84a11df8b2501cb6a3f131f335b0dd2dd21e7f59 Mon Sep 17 00:00:00 2001 From: Furrium Network Date: Mon, 10 Aug 2026 16:59:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=B2=E6=80=81=E7=8E=BB=E7=92=83=EF=BC=81?= =?UTF-8?q?=EF=BC=81=EF=BC=81=EF=BC=81=EF=BC=81=EF=BC=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- style.css | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/style.css b/style.css index bcc0125..cceb60a 100644 --- a/style.css +++ b/style.css @@ -1873,14 +1873,15 @@ a.btn-secondary { } /* ============================================================ - 帖子列表 —— 内容截断(保留换行) + 帖子列表 —— 内容截断(纯 CSS) ============================================================ */ #feed .post-content { - max-height: 4.5em; /* 3 行 × 1.5em 行高 */ + display: -webkit-box; + -webkit-line-clamp: 3; + -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; - line-height: 1.5em; - word-break: break-word; - white-space: normal; + max-height: none; + line-height: 1.7; }