dengzhiguo 6 years ago
parent
commit
eeb6d32125
2 changed files with 12 additions and 6 deletions
  1. 5 1
      src/css/inded.css
  2. 7 5
      src/js/public.js

+ 5 - 1
src/css/inded.css

@@ -39,7 +39,11 @@ div.APP:hover{background-color: #fff;}
 .apply_right>div>a{background-color:#F0F9FF;width:295px;height:145px;margin-left: 10px;
 display: flex;justify-content: space-around;padding: 35px 40px;}
 .apply_right>div>a>img{width:70px;height:75px;}
-.apply_right>div>a>h4{line-height: 70px;letter-spacing: 2px;font-size: 17px;font-weight: normal;color:#3C3E3E;}
+.apply_right>div>a>h4{line-height: 70px;letter-spacing: 2px;font-size: 17px;font-weight: normal;color:#3C3E3E;
+width:120px;overflow: hidden;
+    white-space:nowrap; 
+    text-overflow:ellipsis; 
+    -o-text-overflow:ellipsis;}
 
 #wield{width:100%;margin-top: 40px;}
 .wield_cont{width:1200px;height:400px;margin: 20px auto;text-align: center;}

+ 7 - 5
src/js/public.js

@@ -487,6 +487,7 @@ $(function(){
 			$('.RecommendTitle h2,.patentTitle h2').mouseout(function(){
 				let h2Len = $(this).text(),
 					lenW =   (h2Len.length)*30;
+				
 				$(this).siblings().css({
 					width:'54px'
 				})
@@ -494,13 +495,14 @@ $(function(){
 		}
 	}
 	//banner 箭头高度处理
-	bannerFun();
+	
 	function bannerFun(){
+		
 		let imgH = $('.carousel-inner div').eq(0).find('img').innerHeight();
-		$('.carousel-control').css({
-			'height':imgH+'px',
-			'line-height':(imgH)+'px'
-		})
+		console.log(imgH);
+		$('.carousel-control').css({'height':(imgH)+'px','line-height':(imgH)+'px'})
+		console.log($(".carousel-control").css("height"));
 	}
+	bannerFun();
 });