Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML5 DIV flashes on tap

When receving an onclick event from a DIV as a result of a tap on the iPad, The DIV automatically flashes to a dark color to give the user feedback for the tap. Is there any way to prevent this flash from occurring?

like image 413
eshalev Avatar asked Jun 02 '11 08:06

eshalev


1 Answers

It's because there are events on the element. Just set:

div {
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}
like image 83
David Kaneda Avatar answered Sep 29 '22 08:09

David Kaneda