瀏覽代碼

底部间隙的问题

xiaohaizhao 1 年之前
父節點
當前提交
77926d0bab
共有 1 個文件被更改,包括 8 次插入1 次删除
  1. 8 1
      components/bottomModules/bottom1.vue

+ 8 - 1
components/bottomModules/bottom1.vue

@@ -1,6 +1,6 @@
 <template>
     <view class="box">
-        <image style="width: 100%;height: 100%;"
+        <image class="image"
             src="https://yossys06593.obs.cn-east-3.myhuaweicloud.com:443/202404111712812810046B1fbafed9.png"
             lazy-load="true" mode="aspectFill" />
         <view class="function">
@@ -66,6 +66,13 @@ export default {
     width: 100vw;
     height: 381px;
 
+    .image {
+        width: 100%;
+        height: 100%;
+        display: block;
+        vertical-align: bottom;
+    }
+
     .function {
         position: absolute;
         top: 0;