- $(function () {
- $(window).resize(function () {
- var widinwi=$(window).width();
- $(".htglnr").css({
- "min-height":$(window).height()-$(".htgltop").outerHeight(true)-$(".htgldlxx").outerHeight(true)-60
- })
- if(widinwi<=1280){
- $(".htglcjwt li").css({
- "margin-right":"2%"
- });
- $(".htglcjwt li:nth-child(2n)").css({
- "margin-right":"0"
- });
- }else {
- $(".htglcjwt li").css({
- "margin-right":"4%"
- });
- $(".htglcjwt li:nth-child(4n)").css({
- "margin-right":"0"
- });
- }
- $(".htglnav").css({
- "height":$(window).height()-$(".htgllogo").outerHeight(true)
- });
- $(".af-content").mCustomScrollbar("destroy");
- $(".af-content").mCustomScrollbar({
- mouseWheel:true,
- scrollButtons:{
- enable:true
- }
- });
- }).resize()
- });
Raw Paste