Sfoglia il codice sorgente

banner 箭头js处理

liting2017 6 anni fa
parent
commit
45c6dcba1a

+ 6 - 1
src/css/newMenu/adviser.css

@@ -245,7 +245,12 @@ footer{
 }
 
 
-
+@media screen and (max-width:1200px){
+    .banner{ 
+         width: 1200px!important;
+         margin: 0 auto;
+     }
+ }
 
 
 

+ 6 - 1
src/css/newMenu/adviserDetail.css

@@ -254,7 +254,12 @@ margin-bottom: 100px;
 }
 
 
-
+@media screen and (max-width:1200px){
+   .carousel{ 
+        width: 1200px!important;
+        margin: 0 auto;
+    }
+}
 
 
 

+ 0 - 1
src/css/newMenu/public.css

@@ -886,7 +886,6 @@ input:-webkit-autofill {
 	display: inline-block;
 }
 .bannerList .carousel .left, .bannerList .carousel .right,.carousel-control.left,.carousel-control.right {
-    line-height: 475px;
     font-size: 60px;
 }
 .carousel img{

+ 8 - 1
src/js/public.js

@@ -494,7 +494,14 @@ $(function(){
 				})
 			})
 		}
-		
+	}
+	//banner 箭头高度处理
+	bannerFun();
+	function bannerFun(){
+		let imgH = $('.carousel-inner div').eq(0).find('img').height();
+		$('.carousel-control').css({
+			'line-height':imgH+'px'
+		})
 	}
 });