jQuery(document).ready(function($){
 
$('.close-sidebar').click(function() {  //点击class=“close-sidebar”的对象,即导航中“关闭侧边栏”时
   $('.close-sidebar,.sidebar').hide();       //隐藏class=“close-sidebar”和“sidebar”的对象,即导航中“关闭侧边栏”和主题的“侧边栏”
   $('.show-sidebar').show();      //显示class=“show-sidebar”的对象,即导航中“显示侧边栏”
   $('#main').animate({width: "970px"}, 1000); }); //以1000毫秒让id=“content”的对象,即“文章主体部分”的宽度增加到960px
$('.show-sidebar').click(function() {  //点击导航中“显示侧边栏”时
   $('.show-sidebar').hide();             //隐藏导航中“显示侧边栏”
   $('.close-sidebar,.sidebar').show();        //显示导航中“关闭侧边栏”和主题的“侧边栏”
   $('#main').animate({width: "667px"}, 1000);});    //以1000毫秒让“文章主体部分”的宽度收缩回705px
 
});