zl程序教程

您现在的位置是:首页 >  前端

当前栏目

[CSS 3] Solved: DOM element which is visible but not clickable: pointer-events

CSS not is dom Element but which Events
2023-09-14 08:59:12 时间

A strange bug that one toastr showing on the screen... it should happen that when I click the toastr, it should be dismissed.

But it doesn't....

I was thinking `z-index` first... but later find out, it is about `pointer-events: none`

https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events

 

To solve the problem, 

1. find where it adds `pointer-events: none`, change it to `pointer-events: auto`