From ebf44987b93620315f209d4b9d42f229c50c53ba Mon Sep 17 00:00:00 2001 From: dongqian <3475123872@qq.com> Date: Wed, 2 Jul 2025 15:13:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9B=BE=E7=89=87=E7=BC=A9?= =?UTF-8?q?=E6=94=BE=E5=8F=98=E5=BD=A2=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/AiEmotion.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/views/AiEmotion.vue b/src/views/AiEmotion.vue index 128603e..b06f654 100644 --- a/src/views/AiEmotion.vue +++ b/src/views/AiEmotion.vue @@ -1856,7 +1856,7 @@ defineExpose({ /* 为需要放大的图片添加样式 */ .scaled-img { background-image: url('@/assets/img/AiEmotion/tree02.jpg'); - background-size: 100% 100%; + background-size: contain; background-position: center; background-repeat: no-repeat; width: 70%; @@ -1874,6 +1874,7 @@ defineExpose({ .class08 { background-image: url("@/assets/img/AiEmotion/bk03.png"); + /* background-size: contain; */ background-size: 100% 100%; background-repeat: no-repeat; width: 95%; @@ -2260,6 +2261,7 @@ defineExpose({ .scaled-img { height: 300px; min-height: 25rem; + background-size: contain; } } @@ -2292,9 +2294,10 @@ defineExpose({ background-size: 100% 100%; background-position: center; background-repeat: no-repeat; + background-size: contain; text-align: center; - width: 95%; - margin-top: 6%; + width:100%; + margin-top: 4%; height: 200px; min-height: 200px; }