CSS Property Value How to - pointer-events: none;








Question

We would like to know how to pointer-events: none;.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
img {<!-- w w w  .ja  v  a  2s.  c  o  m-->
  pointer-events: none;
  cursor: default;
}
</style>
</head>
<body>
  <a href="http://google.com">link <img src="http://www.java2s.com/style/download.png" />
  </a>
</body>
</html>

The code above is rendered as follows: