微信提示层

JS代码:

var html_h = $(document).height();
$('.wx').css("height",html_h);

$('.wx').off('click').on('click',function(){
$('.wx').hide();
});

HTML代码:

<div class="wx"></div>

CSS:

.wx {width: 100%;height: 100%;background: url(wxshare.png) no-repeat top center rgba(0, 0, 0, 0.6);display: none;position: absolute;left: 0;top: 0;}
Like what you read? Give Paul Chan a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.