第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

這些js代碼怎么兼容ie10以下的,煩啊

這些js代碼怎么兼容ie10以下的,煩啊

erutdioup8556 2016-07-17 11:58:17
//輪播自動(dòng)播放 $('#myCarousel').carousel({ //自動(dòng)4秒播放 interval?:?4000, }); //設(shè)置垂直居中 $('.carousel-control').css('line-height',?$('.carousel-inner?img').height()?+?'px'); $(window).resize(function?()?{ var?$height?=?$('.carousel-inner?img').eq(0).height()?||? ??$('.carousel-inner?img').eq(1).height()?||? ??$('.carousel-inner?img').eq(2).height(); $('.carousel-control').css('line-height',?$height?+?'px'); }); $(function()?{ $('.collapse.navbar-collapse?ul?li').click(function()?{ ?? console.log($(this)) ?? $(this).addClass('active-mune').siblings().removeClass('active-mune'); ??}) }) $(function()?{ $('.num?li').click(function()?{ ?? console.log($(this)) ?? $(this).addClass('num-hover-active').siblings().removeClass('num-hover-active'); ??}) }) $(function()?{ $('.connection-left?ul?li').click(function()?{ ?? console.log($(this)) ?? $(this).addClass('active-border').siblings().removeClass('active-border'); ??}) }) //翻頁(yè) $(function()?{ $('.page?ul?li').click(function()?{ ?? console.log($(this)) ?? $(this).addClass('active-bg').siblings().removeClass('active-bg'); ??}) }) $('.navbar-collapse?a').click(function(){//小屏幕導(dǎo)航點(diǎn)擊關(guān)閉菜單 ????????????$('.navbar-collapse').collapse('hide'); ????}); ???? ???? $(function(){ ?????//獲取瀏覽器寬度 ?????var?_width?=?$(window).width();? ?????if(_width?<?1024){ ????????????$(".hide-nav").hide(); ????????????$(".undefined02").hide(); ????????????$(".undefined01").hide(); ????????????$(".flay1").removeClass("flay1").addClass("flay2"); ????????????$(".carousel-control-gps").hide(); ????????????$(".hui-reminder").removeClass("hui-reminder").addClass("hui-reminder-phone"); // ????????????$(".hide-foot").hide(); ????????????$(".usernow-label").removeClass("usernow-label").addClass("usernow-label-phone"); ????????????$(".usernow-major").removeClass("usernow-major").addClass("usernow-major-phone"); ????????????$(".usernow-label-2").removeClass("usernow-label-2").addClass("usernow-label-2-phone"); ????????????$(".product-function").removeClass("product-function").addClass("product-function-phone"); ????????????$(".btn-column").hide(); ????????????$(".num").css({"margin-left":"0px","text-align":"center"}); ????????????$(".num?li").css("margin-right","5px"); ????????????$(".navbar-default?.navbar-nav?li").css("margin-right","0px"); ????????????$(".navbar-default?.navbar-nav?li?a").css("font-size","10px"); ????????????$(".logo").css("padding","10px"); ????????????$(".carousel-indicators").css({"bottom":"-10px"}); ?????} }); //隱藏、返回頂部 $(".top").click(function?()?{ ????????$('body,html').animate({?scrollTop:?0?},?400); ????????return?false; ?}); ? $(function(){ var?i=0; var?clone=$(".banner?.img?li").first().clone(); var?clone=$(".btn-column?.img?li").first().clone(); $(".banner?.img").append(clone); $(".btn-column?.img").append(clone); var?size=$(".banner?.img?li").size(); var?size=$(".btn-column?.img?li").size(); //獲取li的個(gè)數(shù) // for(var?j=0;j<size-1;j++){ // $(".num").append("<li></li>"); // } $(".num?li").first().addClass("on"); /*鼠標(biāo)劃入圓點(diǎn)*/ $(".num?li").click(function(){ var?index=$(this).index(); i=index; $(".banner?.img").stop().animate({left:-index*126},225) $(".btn-column?.img").stop().animate({left:-index*700},300) $(this).addClass("on").siblings().removeClass("on") }) /*自動(dòng)輪播*/ // var?t=setInterval(function(){ // i++; // move() // },5000) /*對(duì)banner定時(shí)器的操作*/ // $(".banner").hover(function(){ // clearInterval(t); // },function(){ // t=setInterval(function(){ // i++; // move() // },5000) // }) // $(".btn-column").hover(function(){ // clearInterval(t); // },function(){ // t=setInterval(function(){ // i++; // move() // },5000) // }) /*向左的按鈕*/ $(".btn_l").click(function(){ i++ move(); }) /*向右的按鈕*/ $(".btn_r").click(function(){ i-- move() }) function?move(){ if(i==size){ $(".banner??.img").css({left:0}) $(".btn-column??.img").css({left:0}) i=1; } if(i==-1){ $(".banner?.img").css({left:-(size-1)*126}) $(".btn-column?.img").css({left:-(size-1)*700}) i=size-2; } $(".banner?.img").stop().animate({left:-i*126},225) $(".btn-column?.img").stop().animate({left:-i*700},300) if(i==size-1){ $(".num?li").eq(0).addClass("on").siblings().removeClass("on") }else{ $(".num?li").eq(i).addClass("on").siblings().removeClass("on") } } }) $(function(){ $(".connectionfull-right").mCustomScrollbar({ }); }) ?$(function?()?{?????????????? ????????????//綁定滾動(dòng)條事件?? ??????????????//綁定滾動(dòng)條事件?? ????????????$(window).bind("scroll",?function?()?{?? ????????????????var?sTop?=?$(window).scrollTop();?? ????????????????var?sTop?=?parseInt(sTop);?? ????????????????if?(sTop?<?1)?{?? ????????????????????if?(!$(".indexpc").is(":visible"))?{?? ????????????????????????try?{?? ????????????????????????????$(".indexpc").slideDown();?? ????????????????????????}?catch?(e)?{?? ????????????????????????????$(".indexpc").show();?? ????????????????????????}???????????????????????? ????????????????????}?? ????????????????}?? ????????????????else?{?? ????????????????????if?($(".indexpc").is(":visible"))?{?? ????????????????????????try?{?? ????????????????????????????$(".indexpc").slideUp();?? ????????????????????????}?catch?(e)?{?? ????????????????????????????$(".indexpc").hide();?? ????????????????????????}????????????????????????? ????????????????????}?? ????????????????}??? ????????????});?? ????????})
查看完整描述

1 回答

?
檸檬酸鈉

TA貢獻(xiàn)331條經(jīng)驗(yàn) 獲得超534個(gè)贊

jquery換成1.x版本就行

查看完整回答
1 反對(duì) 回復(fù) 2016-07-17
  • 1 回答
  • 0 關(guān)注
  • 1807 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)