abstrait: $(document).ready(function(){ //隱藏二級與三級下拉菜單 $('.twobox').hide() $('.three').hide() //當(dāng)鼠標(biāo)移動到包含二級菜單的一級菜單時顯示當(dāng)前二級菜單
$(document).ready(function(){
//隱藏二級與三級下拉菜單
$('.twobox').hide()
$('.three').hide()
//當(dāng)鼠標(biāo)移動到包含二級菜單的一級菜單時顯示當(dāng)前二級菜單
$('.one>li').mouseover(function(){
$(this).find('.twobox').slideDown(500)
})
//當(dāng)鼠標(biāo)移出包含二級菜單的一級菜單時隱藏當(dāng)前二級菜單
$('.one>li').mouseleave(function(){
$(this).find('.twobox').slideUp(500)
})
//當(dāng)鼠標(biāo)移動到包含三級菜單的二級菜單時顯示當(dāng)前三級菜單
$('.two').mouseover(function(){
$(this).find('.three').slideDown(500)
})
//當(dāng)鼠標(biāo)移出包含三級菜單的二級菜單時隱藏當(dāng)前三級菜單
$('.two').mouseleave(function(){
$(this).find('.three').slideUp(500)
})
})
Professeur correcteur:查無此人Temps de correction:2018-12-27 09:22:41
Résumé du professeur:三級聯(lián)動,做的不錯。不過沒有html代碼,沒辦法驗證效果。相信你做的是對的,加油。