iScroll will block the default behavior of events in order to simulate scrolling. Therefore, youratag cannot be clicked, the event will not be triggered, and there will be no:active. Do not try to bindaDefining the event and then adding a newactiveclass is in vain. You can take a look at the iscroll documentation. It specifically talks about this. The parameter is:preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT|A)$/}, so that theatag can add events normally.
iScroll will block the default behavior of events in order to simulate scrolling. Therefore, your
a
tag cannot be clicked, the event will not be triggered, and there will be no:active
. Do not try to binda
Defining the event and then adding a newactive
class is in vain. You can take a look at the iscroll documentation. It specifically talks about this. The parameter is:preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT|A)$/}
, so that thea
tag can add events normally.