pointer-events: none; 是看得到却摸不着,点击不到,点击会穿透触发到下层元素的css属性。
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<div style="pointer-events: none;"></div>
</body>
</html>
原文出处:http://www.dongblog.com/notes/12.html
来源:博客网 转载请注明出处!