From 692efa83e46685ed29fd04ae549c8c35d335e3b9 Mon Sep 17 00:00:00 2001 From: shuxiaoquan <853623962@qq.com> Date: Thu, 14 Mar 2024 09:39:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E7=89=87=E9=AB=98=E5=BA=A6=E4=B8=8D?= =?UTF-8?q?=E5=9B=BA=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/activity/newGoods.vue | 8 ++++---- pages/activity/newsshop.vue | 8 +++----- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/pages/activity/newGoods.vue b/pages/activity/newGoods.vue index bb06ea0..563d88d 100644 --- a/pages/activity/newGoods.vue +++ b/pages/activity/newGoods.vue @@ -170,11 +170,11 @@ .firGoods { width: 100%; - height: 548rpx; + height: 510rpx; background-image: url('https://www.royaum.com.cn/static/newGoods/top.png'); - background-repeat: no-repeat; /* 不重复平铺背景图片 */ - background-position: center; /* 居中显示背景图片 */ - background-size: cover; /* 拉伸并填充至元素内部 */ + background-repeat: no-repeat; /* 不重复平铺背景图片 */ + background-position: center top; /* 居中显示背景图片 */ + background-size: 100% auto; /* 拉伸并填充至元素内部 */ .topLine { display: flex; diff --git a/pages/activity/newsshop.vue b/pages/activity/newsshop.vue index f37f793..14347f0 100644 --- a/pages/activity/newsshop.vue +++ b/pages/activity/newsshop.vue @@ -12,7 +12,7 @@ - + @@ -159,12 +159,10 @@ .a { width: 100%; - height: 93rpx; - + overflow: hidden; image { - background-size: cover; + display: block; width: 100%; - height: 100% !important; } }