您好,登錄后才能下訂單哦!
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>webrx-title</title>
<meta name="keywords" content="關(guān)鍵字">
<meta name="description" content="簡(jiǎn)介">
<script src="js/jquery-3.1.1.min.js"></script>
<style>
.bg img{width:100%;margin:0;padding:0;display:block;}
.blur{-webkit-filter:blur(8px)}
.popus{width:400px;color:#000;;position:fixed;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);font-family:"微軟雅黑";padding:20px 0px;font-weight:bold;background-color:rgba(255,255,255,0.6);border-radius:18px;text-align:center;padding:30px 0px;box-shadow:0px 0px 10px rgba(0,0,0,0.4);display:none}
.popus div{width:220px;margin:10px auto}
.popus div.btn{width:80px;padding:5px 10px;color:#000}
.left{float:left;border:1px solid #000}
.popus div.btn.right{float:right;color:#666}
</style>
<script>
$(document).ready(function() {
$(".bg").on('click',function(){
$(this).addClass("blur");
$(".popus").show();
})
$(".btn").on('click',function(){
$('.popus').hide();
$('.bg').removeClass('blur');
})
});
</script>
</head>
<body>
<div class="bg">
<img src="p_w_picpaths/295804.jpg">
</div>
<div class="popus">
<div>
<div class="left btn">確定按鈕</div>
<div class="right btn">關(guān)閉按鈕</div>
</div>
</div>
</body>
</html>
運(yùn)行效果:
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。