소스 검색

fix: set fixed banner height for all screen sizes

- Desktop (>996px): height: 500px
- Tablet (768px-996px): height: 400px (was: auto)
- Mobile (<768px): height: 300px (was: auto)
- Prevents layout collapse and white gaps

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
Ryuiso 3 주 전
부모
커밋
c8cd199673
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/view/HomePage.vue

+ 2 - 2
src/view/HomePage.vue

@@ -325,7 +325,7 @@ export default {
 /* 媒体查询(手机) */
 @media screen and (max-width: 768px) {
   #swiper {
-    height: auto;
+    height: 300px;
   }
 
   #swiper .banner-swiper .swiper-slide-title > h1 {
@@ -431,7 +431,7 @@ export default {
 /* 媒体查询(平板) */
 @media screen and (min-width: 768px) and (max-width: 996px) {
   #swiper {
-    height: auto;
+    height: 400px;
   }
 
   #swiper .banner-swiper .swiper-slide-title > h1 {