本文介绍了当触发onclick时,有没有办法禁用iPad / iPhone上的闪烁/闪烁?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我有一个有onclick事件的区域。单击常规浏览器时,它不会显示任何视觉变化,但是当它在iPad / iPhone上单击时会闪烁/闪烁。有没有办法阻止它在iPad / iPhone上这样做?

So I have an area that has an onclick event. When clicked on a regular browser it does not show any visual change, but when it is clicked on the iPad/iPhone it makes a flash/blink. Is there any way to stop it from doing this on the iPad/iPhone?

这是一个类似于我正在做的例子:。

Here is an example similar to what I am doing: http://jsfiddle.net/zb5xn/.

推荐答案

试试这个:

body * {
-webkit-tap-highlight-color: rgba(0,0,0,0);
}

这篇关于当触发onclick时,有没有办法禁用iPad / iPhone上的闪烁/闪烁?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-21 05:26