$(document).ready(function () { var sw=$(window).width(); var sh=$(window).height(); var navw=$("#bs-example-navbar-collapse-1").width() $(".rowbox").css("height",$(".nav").css("height")) $(".acontent p").attr('style',$(".acontent p").attr('style')+" line-height:28px;background-color:unset;font-size:16px") $(".acontent p span").attr('style',$(".acontent p span").attr('style')+" line-height:28px;background-color:unset;font-size:16px") $(".acontent span").attr('style',$(".acontent span").attr('style')+" line-height:28px;background-color:unset;font-size:16px") $(".pcontent p").attr('style',$(".pcontent p").attr('style')+" line-height:28px;background-color:unset;font-size:16px") $(".pcontent p span").attr('style',$(".pcontent p span").attr('style')+" line-height:28px;background-color:unset;font-size:16px") $(".pcontent span").attr('style',$(".pcontent span").attr('style')+" line-height:28px;background-color:unset;font-size:16px") if(sw>1200){ $(".sbg").css({"height":parseint($(".fnewsbg").css("height"))}) $(".searchform").css({"height":parseint($(".fnewsbg").css("height"))-30}) } if(sw>992 && sw <1200){ $(".abfwshl").css({"height":$(".abfwshr").css("height")}) $(".abfwlcl ").css({"height":$(".abfwlcr").css("height")}) } if(sw>768 && sw <993){ $(".abfwshl").css({"height":$(".abfwshr").css("height")}) $(".abfwlcl ").css({"height":$(".abfwlcr").css("height")}) } if(isie()){ $(".pagehead h2").css({"background":"unset","color":"#fff","width":"130px","padding":"3px","border-radius":"3px"}) $(".banner .item img").css({"left":"0","margin-left":"0"}) $(".swiper-pagination").css("display","none") $(".swiper-container").css({"width":"1300px"}) $(".swiper-wrapper").attr("style","width:100%;") $(".swiper-slide").attr("style","width:413.333px;float:left;margin-right:30px;") $(".swiper-slide:nth-child(3)").attr("style","width:413.333px;float:left;margin-right:0px;") $(".swiper-slide").each(function (index,ele) { if(index>2){ $(ele).css("display","none") } }) $(".indexform input").css("color","#999") $(".indexform input[type='button']").css("color","#fff") $(".indexform textarea").css("color","#999") } }) function isie() { if(!!window.activexobject || "activexobject" in window){ return true; }else{ return false; } }