2015-02-11 61 views
0

请参阅以下链接的屏幕截图。在selectmenu jquery mobile和cordova中选定选项的奇怪浅绿色背景色4 cli

我使用的jQuery Mobile的selectmenu与建设科尔多瓦CLI的Android应用程序,选择菜单中选择选项,有一个奇怪的绿色背景,我想下面的CSS没有任何结果:

* { 
    -webkit-tap-highlight-color: rgba(0,0,0,0) !important; 
    -webkit-tap-highlight-color: transparent !important; 
} 

select option { 
    background-color:#ffffff !important;  
} 

select option:checked { 
    background-color:#ffffff !important;  
} 

当我使用phonegap 3.6版本的“phonegap build”时,我没有遇到这个问题。

我不认为问题是在CSS中,它可能是从cordova构建?

我也面临这个问题的数据,本机菜单=“假”

截图链接: https://drive.google.com/file/d/0B2nIP5MeGtfPWmtMT2JabkN2Tm8/view?usp=sharing

回答

0

我一直有类似的问题,但发现这个答案的解决方案:

https://stackoverflow.com/a/18170978

它看起来像选择菜单的绿色造型由在AndroidManifest.xml中指定的默认主题的控制。

改变它

android:theme="@android:style/Theme.DeviceDefault"

固定对我来说。

+0

非常感谢!!正是我所期待的! ..解决了我的问题,我一直在努力,没有找到答案,我认为这是从JQuery的CSS,伟大的完成:)感谢您的帮助 – MobSoft 2015-03-07 19:40:56