소스 검색

文字居中并且不溢出

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;
   }