huaisianhuang преди 3 години
родител
ревизия
a943df7038
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  1. 4 0
      js/index.js

+ 4 - 0
js/index.js

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