javascript - Add a pseudo-class to a certain class. This class has a click event. Now when I click on the pseudo-class, the click event is also triggered.
欧阳克2017-07-05 10:44:13
0
2
1067
Add a pseudo-class to a certain class. This class has a click event. Now when I click on the pseudo-class, the click event is also triggered. How can I prevent the click event from being triggered by clicking on the pseudo-class?
Detailed explanation of pointer-events:none; http://www.zhangxinxu.com/wor... currentTarget handles click events and is also effective in event capture
Disable mouse click events:
Add to the style of the pseudo class:
Compatibility: here
Detailed explanation of pointer-events:none;
http://www.zhangxinxu.com/wor...
currentTarget handles click events and is also effective in event capture