소스 검색

卡片页面移动端

James 4 년 전
부모
커밋
4da9ce1cc0
2개의 변경된 파일117개의 추가작업 그리고 49개의 파일을 삭제
  1. 107 49
      src/components/swCard/index.vue
  2. 10 0
      src/pages/ruins/index.vue

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 107 - 49
src/components/swCard/index.vue


+ 10 - 0
src/pages/ruins/index.vue

@@ -63,5 +63,15 @@ activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
         margin:180px auto;
     }
 }
+
+@media screen and (max-width: 1024px) {
+    .layout { 
+        background: url('../../assets/images/mobile-index-bg.png') center center no-repeat;
+        .cards {
+            margin:32vw auto;
+        }
+    }
+    
+ }
     
 </style>