我打開菜單是通過jquery的animate做的,那些利用display的就不用說了$(document).ready(function(){
$(".menu").click(function(){
$(".menubox").animate({
height:'162px',
opacity:'1',
},300);
$(".menubox")addClass("menu-opened");
});
$(".menu-close").click(function(){
$(".menubox").animate({
height:'0px',
opacity:'0',
},300);
$(".menubox")removeClass("menu-opened");
});
});
怎么實現(xiàn)點擊非菜單區(qū)域關閉菜單?
拉格朗日之都
2016-04-20 09:58:17