Browse Source

banner_优化

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

+ 3 - 2
src/js/public.js

@@ -498,9 +498,10 @@ $(function(){
 	//banner 箭头高度处理
 	bannerFun();
 	function bannerFun(){
-		let imgH = $('.carousel-inner div').eq(0).find('img').height();
+		let imgH = $('.carousel-inner div').eq(0).find('img').innerHeight();
+		console.log(imgH);
 		$('.carousel-control').css({
-			'line-height':(imgH-4)+'px'
+			'line-height':(imgH)+'px'
 		})
 	}
 });