禁用WebView中的div上的橙色突出显示 [英] Disable orange highlight on a div in WebView

查看:182
本文介绍了禁用WebView中的div上的橙色突出显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在制作一个PhoneGap Android应用,无法关闭橙色高亮显示的可点击元素。

I am making an PhoneGap Android app, and can't turn off the orange highlighting clickable elements.

我已尝试过CSS的所有组合:-webkit-tap -highlight-color,-webkit-focus-ring-color和-webkit-user-modify。

I have tried all combinations of CSS: -webkit-tap-highlight-color, -webkit-focus-ring-color and -webkit-user-modify, as suggested in

禁用焦点上的橙色轮廓高亮

在Android中禁用链接周围的橙色突出显示

它不会做任何事情:

`* {  
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0) !important;   
    -webkit-focus-ring-color: rgba(255, 255, 255, 0) !important;  
    outline: none !important;  
    -webkit-user-modify: read-write-plaintext-only !important;  
    -webkit-touch-callout: none;
    -webkit-user-select: none;
}`

我使用Phonegap 2.9.0和Android 4.1.2,来自此处的Calendario插件:

http://tympanus.net/codrops/2012/11/27/calendario-a-flexible-calendar-plugin/

I'm using Phonegap 2.9.0 and Android 4.1.2, and Calendario plugin from here:
http://tympanus.net/codrops/2012/11/27/calendario-a-flexible-calendar-plugin/

有任何希望禁止此难看的有机物?

Is there any hope for disabling this unsightly organe thing?

推荐答案

div{
-webkit-appearance:none;
}

这篇关于禁用WebView中的div上的橙色突出显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆