Is there a way to disable the flash/blink on the iPad/iPhone when an onclick is fired?

拈花ヽ惹草 提交于 2019-12-10 02:31:19

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!