页面mask css

时间:2022-03-25 23:01:32
页面mask  css
<html>
<head>
<style type="text/css">
.share_mask {
position: fixed;
top: 0;
left: 0;
z-index: 9998;
width: 100%;
height: 100%;
background: rgba(0,0,0,.6);
}
.ip_none {
position: absolute;
top: 40%;
left: 50%;
margin-top: -150px;
margin-left: -150px;
width: 300px;
height: 300px;
}
</style>
</head>
<body>
<div class="share_mask" style="display:none" > <img class="ip_none" src="http://cx.hedayikao.com/Content/imgs/qrcode_for_gh_30e7ad15afa9_860.jpg" data-src="http://cx.hedayikao.com/Content/imgs/qrcode_for_gh_30e7ad15afa9_860.jpg">
</div>
</body>
</html>