开发者

Turn off grey box when mousedown in Mobile Safari

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜