点击页面其他元素,隐藏菜单《一》

示例如下

JS代码

  $(document).bind('click',function(e){
           var target  = $(e.target);
     if(target.closest(".wrapFloat-ck").length == 0){
    $(".wrapFloat-ck").children(".float-box").css("display","none");
     }
         });

 

posted @ 2013-04-09 17:10  关小庆  阅读(180)  评论(0编辑  收藏  举报