瀏覽代碼

文字居中并且不溢出

James 4 年之前
父節點
當前提交
c5d49c8f87
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/components/swCard/index.vue

+ 4 - 1
src/components/swCard/index.vue

@@ -361,8 +361,11 @@ export default {
     font-size: 0;
     position: relative;
   }
+  .swiper-slide .maskss { 
+    width: 100%;
+  }
   .swiper-slide .card {
-    width: 95%;
+    width: 100%;
     height: 100vw;
     background: url("../../assets/images/card-bg.png") center center no-repeat;
   }