IPad Safari: 如何在点击链接时禁用快速闪烁效果

有办法解除吗?
我只是说在浏览器中... ... 当你点击一个链接或者按钮或者一个有点击功能的 div 时,它会闪烁一个灰色的框,在那里你可以快速点击。我该怎么阻止这一切?

51743 次浏览

You could set a transparent color to the -webkit-tap-highlight-color property of that element.

a {
-webkit-tap-highlight-color: transparent;
}

Using mobile Safari in Phonegap, only this worked:

* {  -webkit-backface-visibility:  hidden;
-webkit-tap-highlight-color:  transparent;
}

Source: iPhone WebKit CSS animations cause flicker

Also, on the main panel, enable rendering:

div.myPanelOrWhatever
{
-webkit-transform: translate3d(0, 0, 0)
}

Source: Prevent flicker on webkit-transition of webkit-transform