使用指针事件來控制鼠标事件

指针事件允許您指定鼠标如何与其触摸的元素进行交互。 要禁用按钮上的默认指针事件,例如:

  1. .button-disabled {
  2. opacity: .5;
  3. pointer-events: none;
  4. }

就这么简单。