Browse Source

更改适配

xiezhiming 3 năm trước cách đây
mục cha
commit
1d8945e59f
1 tập tin đã thay đổi với 5 bổ sung3 xóa
  1. 5 3
      src/js/staticInfo.js

+ 5 - 3
src/js/staticInfo.js

@@ -215,14 +215,16 @@ function renderCalculate(){
 		}
 	})	
 	// 适配改变样式
-	$(window).bind('load resize',function(){
+	function Adaptation(){
 		let widths=$(document).width();
-		if(widths<=960) {
+		if(widths<=1025) {
 			$('.cgs_top').addClass('cgs_tops')
 		}else{
 			$('.cgs_top').removeClass('cgs_tops')
 		}
-	})	
+	}
+	Adaptation()
+	$(window).bind('load resize',Adaptation)		
 	
 }