From 8251c7593982e6581be80e687fb69890ee105ddf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Thu, 17 Oct 2024 18:55:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A7=92=E6=9D=80=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/model-seckill/index.vue | 8 ++++---- src/styles/common.scss | 14 ++++++++++++++ 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/components/model-seckill/index.vue b/src/components/model-seckill/index.vue index 174f2273..16006de2 100644 --- a/src/components/model-seckill/index.vue +++ b/src/components/model-seckill/index.vue @@ -55,7 +55,7 @@
-
{{ item.title }}
+
{{ item.title }}
-
{{ item.title }}
+
{{ item.title }}
diff --git a/src/styles/common.scss b/src/styles/common.scss index ff2ea2af..b717bad5 100644 --- a/src/styles/common.scss +++ b/src/styles/common.scss @@ -270,4 +270,18 @@ -moz-user-select: none; -ms-user-select: none; user-select: none; +} +// 显示两行 +.multi-text { + max-width: 100%; + overflow: hidden; + text-overflow: ellipsis; + display: -webkit-box; + line-clamp: 2; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; + min-height: 3.2rem; + line-height: 1.6rem; + font-size: 1.4rem; + white-space: initial; } \ No newline at end of file