认识 CSS pointer-events 属性
pointer-events 的基本信息
pointer-events 属性用来控制一个元素能否响应鼠标操作,常用的关键字有 auto 和 none
pointer-events: none; // 让一个元素忽略鼠标操作
pointer-events: auto; // 还原浏览器设定的默认行为
规范定义
条目
状态
初始值
auto
可用值
适用所有元素:auto/none,只适用于 SVG:bounding-box/visiblePainted/visible