跳至内容
Taijicoder Wiki
用户工具
登录
站点工具
搜索
工具
显示页面
过去修订
反向链接
最近更改
媒体管理器
网站地图
登录
>
最近更改
媒体管理器
网站地图
您的足迹:
safari_mobile_does_not_use_the_active_pesu_class_issue
本页面只读。您可以查看源文件,但不能更改它。如果您觉得这是系统错误,请联系管理员。
## 解决方案: ``` document.addEventListener("touchstart", function() {},false); ``` ## 参考链接: [On iOS, mouse events are sent so quickly that the down or active state is never received. Therefore, the :active pseudo state is triggered only when there is a touch event set on the HTML element—for example, when ontouchstart is set on the element as follows:](https://developer.apple.com/library/content/documentation/AppleApplications/Reference/SafariWebContent/AdjustingtheTextSize/AdjustingtheTextSize.html) [By default, Safari Mobile does not use the :active state unless there is a touchstart event handler on the relevant element or on the <body>.](https://developer.mozilla.org/en-US/docs/Web/CSS/:active) [移动端:active伪类无效的解决方法](http://blog.csdn.net/freshlover/article/details/43735273) [Fix CSS hover on iPhone/iPad/iPod](https://stackoverflow.com/questions/18047353/fix-css-hover-on-iphone-ipad-ipod)
safari_mobile_does_not_use_the_active_pesu_class_issue.txt
· 最后更改:
2024/02/04 04:49
由
127.0.0.1
页面工具
显示页面
过去修订
反向链接
回到顶部