$(".nav>li").hover(function(){
$(this).children(".subNav").stop().animate({"height":"120px"},500)
},function(){
$(this).children(".subNav").stop().animate({"height":"0px"},500)
})
}
$(this).children(".subNav").stop().animate({"height":"120px"},500)
},function(){
$(this).children(".subNav").stop().animate({"height":"0px"},500)
})
}
2017-11-16
已采納回答 / onlyl_pets
window.onload=function(){var aA=oNav.getElementsByTagName('a');第二行應(yīng)該改成:var aA=document.getElementsByTagName('a');
2017-11-15
最新回答 / 慕無(wú)忌4172087
你的widows是什么?? 問題應(yīng)該是沒有設(shè)置寬度width吧? 那當(dāng)然會(huì)連在一起的,可以試試把widows全部改成width
2017-11-08
最新回答 / LeftJS
第一個(gè)問題沒看懂哦!第二個(gè)問題,不寫那句,那你就不知道操作的是哪一個(gè)標(biāo)簽也可以用className的沒有必要設(shè)置display;
2017-11-06
最新回答 / 慕小埋
a1[i].onmouseout=function(){? ? ? ? ? ? ? ? ? ? ? ? clearInterval(this.timer);? ? ? ? ? ? ? ? ? ? ? ? var that=this;? ? ? ? ? ? ? ? ? ? ? ? ?that.timer=setInterval(function(){? ? ? ? ? ? ? ? ? ? ? ? ? ? that.style.width=that.offsetWidth-8+"px";? ? ? ? ? ?...
2017-11-06