码迷,mamicode.com
首页 > 其他好文 > 详细

:active pseudo-class doesn't work in mobile safari

时间:2015-01-26 18:54:28      阅读:221      评论:0      收藏:0      [点我收藏+]

标签:

<body ontouchstart="">
    ...
</body>

Applied just once, as opposed to every button element seemed to fix all buttons on the page. Alternatively you could use this small JS library called ‘Fastclick‘. It speed up click events on touch devices and takes care of this issue too.

:active pseudo-class doesn't work in mobile safari

标签:

原文地址:http://www.cnblogs.com/benu/p/4250907.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!