Browse Source

优化banner

liting2017 6 years ago
parent
commit
f6e06d3555
2 changed files with 4 additions and 3 deletions
  1. 2 1
      src/css/newMenu/public.css
  2. 2 2
      src/js/public.js

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

@@ -886,7 +886,8 @@ input:-webkit-autofill {
 	display: inline-block;
 }
 .bannerList .carousel .left, .bannerList .carousel .right,.carousel-control.left,.carousel-control.right {
-    font-size: 60px;
+	font-size: 60px;
+	overflow: hidden;
 }
 .carousel img{
 	width: 100%;

+ 2 - 2
src/js/public.js

@@ -499,9 +499,9 @@ $(function(){
 	bannerFun();
 	function bannerFun(){
 		let imgH = $('.carousel-inner div').eq(0).find('img').innerHeight();
-		console.log(imgH);
 		$('.carousel-control').css({
-			'line-height':(imgH-4)+'px'
+			'height':imgH+'px',
+			'line-height':(imgH)+'px'
 		})
 	}
 });