Ver Fonte

adjust banner ratio

huaisianhuang há 3 anos atrás
pai
commit
a943df7038
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      js/index.js

+ 4 - 0
js/index.js

@@ -8,6 +8,8 @@
     $('.sec-02 .slide-item').css('height', `${height}px`);
     let topHeight = (window.screen.width * 30) / 131;
     console.log(topHeight);
+    $('.sec-00 .slide-item').css('height', `${topHeight}px`);
+    $('.sec-00 .container-fluid').css('height', `${topHeight}px`);
   }
 } 
 
@@ -16,6 +18,8 @@ window.addEventListener('resize', reportWindowSize);
 function reportWindowSize() {
   if(screen.width > 480) {
     $('.sec-02 .slide-item').css('height', `130vh`);
+    $('.sec-00 .slide-item').css('height', `200px`);
+    $('.sec-00 .container-fluid').css('height', `200px`);
   }
 }