我们先来看一个点击遮罩时,让遮罩隐藏的例子
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>事件点透</title>
<meta name="viewport" content="width=device-width,user-scalable=no" />
<style type="text/css">
#box {
position: absolute;
left: 0;
top: 0;
width: 150px;
height: 150px;
background: red;
opacity: .5;
}
</style>
</head>
<body>
<a href="http://www.baidu.com">打开百度</a>
<div id="box"></div>
<script type="te