开发者

Turn off grey box when mousedown in Mobile Safari

开发者 https://www.devze.com 2023-01-01 22:23 出处:网络
On Mobile Safari, when you click on an element it gets a grey box around it between mousedown and mouseup.

On Mobile Safari, when you click on an element it gets a grey box around it between mousedown and mouseup.

How do you turn this 开发者_Go百科off?


I was looking for the answer as well, and found it in the jQTouch CSS source code. Just add this to your definitions: -webkit-tap-highlight-color: rgba(0,0,0,0); Note that the box shows up for anything with a "click" or "touchend" listener (I think), so for best results, toss it under body { }

0

精彩评论

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