点击除指定区域外的空白处,隐藏div
<script> $(document).click(function (e) { var $target = $(e.target);
//点击.zanpl和.quanzipl以外的地方 隐藏.quanzipl和footer
if(!$target.is('.zanpl *') && !$target.is('.quanzipl *')) {
$('.quanzipl').hide();
$('footer').show(); }
});
</script>