开发者

Iphone darkens div on click

开发者 https://www.devze.com 2022-12-21 08:37 出处:网络
When you have a div with a click handler attached, the iphone darkens the div as a click indicator, when the div is clicked.

When you have a div with a click handler attached, the iphone darkens the div as a click indicator, when the div is clicked.

Example: view on mob开发者_JAVA百科ile safari http://jsbin.com/awejo3/4

My question is, how do I turn this behavior off? This is probably useful for most iphone users, but in some types of rich media applications, this is bad.

Thanks.


You can set the "tap hightlight color" to transparent in css.

html
{
  -webkit-tap-highlight-color:transparent;
}
0

精彩评论

暂无评论...
验证码 换一张
取 消