long8-龙8

$(window).scroll(function(){ if($(window).scrollTop() > 80 && $("html").width() > 768) { $(".main_nav").addClass("fixed"); } else { { $(".main_nav").removeClass("fixed"); } } }) $(function () { thissize(); $(window).resize(thissize); }); function thissize() { var html = document.documentElement; var windowWidth = html.clientWidth; if ($(window).width() > 768) { html.style.fontSize = windowWidth / (windowWidth / 100) + 'px'; } else { html.style.fontSize = windowWidth / 7.68 + 'px'; $(".top").html(""); } } $("#banner").owlCarousel({ items: 1, paginationNumbers: false, loop: true, autoplay: true, autoplayTimeout: 5000, autoplayHoverPause: true, smartSpeed:2500 }) //导航高亮 $(".main_nav .nav li").eq($("#nav").val()).addClass('on'); //防止图片溢出 $(".detail_con").find("img").css({"max-width":"100%","height":"auto"});
long8-龙8