开发者

Phonegap yellow highlight

I have a Samsung Captivate. Whenever I click on a button or image a yellow highlight shows up around it. I was wondering is this the 开发者_JAVA百科phone itself? Or is it something I can turn off via PhoneGap.

Makes the app ugly ;)

Thanks


Use -webkit-tap-highlight-color in your CSS.

See this answer as well: How to disable the orange circle effect when clicking on a link, in a WebView


If you view the page in the browser on the device do you get this same effect?

Do you get this when viewing websites on the device?

If yes to the above then you may be able to control this with CSS.


button, li , a, *:hover 
{
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0) !important;
}

above code did the trick for US.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜