From 1daa00227f03bc3a370dc1311b7166df17368929 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期三, 20 三月 2024 16:15:46 +0800 Subject: [PATCH] Merge refs/remotes/origin/master into refs/heads/master --- pages/home/home.wxss | 28 +++++++++++++++++++++++----- 1 files changed, 23 insertions(+), 5 deletions(-) diff --git a/pages/home/home.wxss b/pages/home/home.wxss index 422c185..67cd4ed 100644 --- a/pages/home/home.wxss +++ b/pages/home/home.wxss @@ -15,6 +15,7 @@ top: 0; left: 0; height: 80rpx; + line-height: 80rpx; z-index: 3; text-align: center; padding-top: 110rpx; @@ -152,7 +153,7 @@ .body-info .name { font-size: 30rpx; - height: 88rpx; + height: 80rpx; color: #333333; font-weight: bold; line-height: 40rpx; @@ -173,6 +174,17 @@ font-size: 26rpx; display: flex; justify-content: space-between; + display: -webkit-box; + /* 浣跨敤寮规�х洅瀛愬竷灞�妯″瀷 */ + -webkit-line-clamp: 1; + /* 鎺у埗鏂囨湰鐨勮鏁� */ + -webkit-box-orient: vertical; + /* 璁剧疆鐩掑瓙鐨勫瓙鍏冪礌鎺掑垪鏂瑰悜 */ + overflow: hidden; + /* 瓒呭嚭閮ㄥ垎闅愯棌 */ + text-overflow: ellipsis; + /* 瓒呭嚭閮ㄥ垎鏄剧ず鐪佺暐鍙� */ + white-space: normal; } .body-info .price { @@ -241,7 +253,7 @@ } .listBox2 .booksListItemBox { - width: calc(100%/3 - 30rpx); + width: calc(100%/3 - 32rpx); margin-bottom: 30rpx; margin-right: 45rpx; } @@ -360,10 +372,16 @@ height: 80rpx; width: 188rpx; color: #333333; - line-height: 30rpx; - overflow: hidden; - text-overflow: ellipsis; + line-height: 40rpx; display: -webkit-box; + /* 浣跨敤寮规�х洅瀛愬竷灞�妯″瀷 */ -webkit-line-clamp: 2; + /* 鎺у埗鏂囨湰鐨勮鏁� */ -webkit-box-orient: vertical; + /* 璁剧疆鐩掑瓙鐨勫瓙鍏冪礌鎺掑垪鏂瑰悜 */ + overflow: hidden; + /* 瓒呭嚭閮ㄥ垎闅愯棌 */ + text-overflow: ellipsis; + /* 瓒呭嚭閮ㄥ垎鏄剧ず鐪佺暐鍙� */ + white-space: normal; } \ No newline at end of file -- Gitblit v1.9.1