我已經(jīng)實(shí)現(xiàn)點(diǎn)擊按鈕顯示和隱藏菜單,但是實(shí)現(xiàn)點(diǎn)擊其他位置和向下滑動(dòng)菜單會(huì)消失,怎么去實(shí)現(xiàn)?演示效果:http://es.xiaojukeji.com/換成移動(dòng)端$('#buttonID').click(function(){
var?box?=?$('.side-nav');
$('.side-nav').css('margin-left')?=='-15px'???box.css('margin-left','-235px')?:?box.css('margin-left','-15px');
})
我已經(jīng)實(shí)現(xiàn)點(diǎn)擊按鈕顯示和隱藏菜單,但是實(shí)現(xiàn)點(diǎn)擊其他位置和向下滑動(dòng)菜單會(huì)消失,怎么去實(shí)現(xiàn)?
erutdioup8556
2016-10-27 09:00:16