亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

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
1173

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?

歐陽克
歐陽克

溫故而知新,可以為師矣。 博客:www.ouyangke.com

reply all(2)
小葫蘆

Disable mouse click events:

Add to the style of the pseudo class:

pointer-events:none;

Compatibility: here

淡淡煙草味

Detailed explanation of pointer-events:none;
http://www.zhangxinxu.com/wor...
currentTarget handles click events and is also effective in event capture

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template