2013-04-10 139 views

回答

1
$(document).ready(function() { 
    $('.sbt').click(function() { 
     $('.sidebar').toggle(300); 
    }); 
}); 

Updated DEMO

+1

簡單性是真棒。你知道我怎麼說讓它褪色? – Jacob 2013-04-10 05:40:29

+0

@Jacob看看[fadeToggle](http://api.jquery.com/fadeToggle/)。與開關 – DACrosby 2013-04-10 05:43:19

+0

@Douglas A. Crosby一樣使用,謝謝! :d – Jacob 2013-04-10 05:45:10