Przeglądaj źródła

Revert "fix: set explicit banner height and remove gaps"

This reverts commit 2c9bc4e6038ef6fe85f6faa004f352e97904b7c7.
Ryuiso 3 tygodni temu
rodzic
commit
a97c0c194b
2 zmienionych plików z 1 dodań i 12 usunięć
  1. 0 2
      src/components/Header.vue
  2. 1 10
      src/view/HomePage.vue

+ 0 - 2
src/components/Header.vue

@@ -154,8 +154,6 @@ export default {
   background: #f4f4f4;
   transition: all ease 0.6s;
   box-shadow: none;
-  margin: 0;
-  padding: 0;
 }
 
 #header .header-top {

+ 1 - 10
src/view/HomePage.vue

@@ -185,8 +185,6 @@ export default {
 
 /* 轮播图 */
 #swiper {
-  width: 100%;
-  height: 500px;
   margin: 0;
   padding: 0;
 }
@@ -198,15 +196,8 @@ export default {
   padding: 0;
 }
 
-#swiper .banner-swiper .swiper-slide {
-  width: 100%;
-  height: 100%;
-}
-
 #swiper .banner-swiper .swiper-slide img {
-  width: 100%;
-  height: 100%;
-  object-fit: cover;
+  max-width: 100%;
   background-size: cover;
 }