问题
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/.
回答1:
Try this:
body * {
-webkit-tap-highlight-color: rgba(0,0,0,0);
}
来源:https://stackoverflow.com/questions/8990442/is-there-a-way-to-disable-the-flash-blink-on-the-ipad-iphone-when-an-onclick-is