弹出提示框界面加遮罩

<div class="tishi" id="tishi">
			<div class="kuai" id="kuai">
				<div class="fanhui"><button id="close"><img src="image/close.png"></button></div>	
			</div>
		</div>


 
			
function fn(){	
$("#tishi").show();
 $("#close").click(function(){$("#tishi").hide();});
for(var i = 0; i < rule.length; i++) 
{
if(rule[i].checked) {
check.push(rule[i].value);}
}for(var m = 0, j = 0;(m < result.length) && (j < check.length); m++, j++) {
if(result[m] == check[j]) {score += 10;}
}
var aaa=document.getElementById("kuai");
aaa.innerHTML="你得了"+score+"分";
}


 

.tishi {
		width: 1280px;
		height: 730px;
		position: absolute;
		z-index: 10000;
		margin: 0px 0px 0px 0px;
		display: none;
		background: rgba(0, 0, 0, 0.5);
		top: 0px;
		left: 0px;
	}
.kuai {
	width: 500px;
	height: 400px;
	background: #5cadff;
	left: calc(50% - 250px);
	top: 200px;
	border-radius: 10px;
	background:url(../img/1280/background2.png);
	position: fixed;
	background-repeat: no-repeat;
}

.fanhui {
	width: 30px;
	height: 30px;
	float: right;
	margin-right: 20px;
	margin-top: 20px;
}

.fanhui button {
	width: 30px;
	height: 30px;
	background: none;
	border: none;
	font-size: 18px;
}






评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值