标签:ati func find on() block jquery document click header
<!--弹出层--->
<div class="mask">
<div class="wrap"></div>
</div>
/***弹出层效果***/
$(".header").find(".a5").click(function(e){
e.stopPropagation();//阻止冒泡
$(‘.mask‘).css("display","block");
})
$(document).click(function(){
if($(‘.mask‘).css("display","block")){
$(‘.mask‘).css("display","none");
}
});
$(‘.wrap‘).click(function(e) {
//这个是弹出层的样式class
e.stopPropagation();//阻止冒泡
});
})
标签:ati func find on() block jquery document click header
原文地址:http://www.cnblogs.com/daiwenru/p/7144945.html