css - iScroll 里a:active不起作用改如何解决
PHPz
PHPz 2017-04-17 14:25:57
0
1
607

在iScroll里点击起不到作用

PHPz
PHPz

学习是最好的投资!

reply all(1)
刘奇

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 bind a Defining the event and then adding a new active 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 the a tag can add events normally.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!