|
@@ -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)
|
|
|
|
|
|
}
|
|
|
|