代码示例:(标识:cssref_pointer-events)
<!DOCTYPE html>
<html>
<head>
<style> 
div.ex1 {
  pointer-events: none;
}

div.ex2 {
  pointer-events: auto;
}
</style>
</head>
<body>

<h1>pointer-events 属性</h1>

<p>请把鼠标指针移至下面的链接,查看是否对指针事件做出反应:</p>

<h2>pointer-events: none:</h2>
<div class="ex1">访问 <a href="https://www.sou-xun.com/html/index.html">HTML 教程</a></div>

<h2>pointer-events: auto(默认)</h2>
<div class="ex2">访问 <a href="https://www.sou-xun.com/css/index.html">CSS 教程</a></div>

</body>
</html>
运行结果: