Home  >  Article  >  Operation and Maintenance  >  How to use css to disable mouse events

How to use css to disable mouse events

PHPz
PHPzforward
2023-05-14 12:43:06742browse

Disable mouse events

CSS3’s new pointer-events allows you to disable mouse events for elements. For example, a link cannot be clicked if the following style is set.

.disabled { pointer-events: none; }

The above is the detailed content of How to use css to disable mouse events. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yisu.com. If there is any infringement, please contact admin@php.cn delete