2017-06-15 91 views
0

这有点笨,但它真的很烦人。如何更改实现输入字段的默认颜色[type = search]?覆盖物化默认输入颜色

默认情况下,它的颜色是粉红色的,当我做到这一点

.input-field input:focus { 
    background: transparent !important; 
    background-color: transparent !important; 
    } 
    .input-field input { 
    background: transparent !important; 
    background-color: transparent !important; 
    } 
    .input-field { 
    background: transparent !important; 
    background-color: transparent !important; 
    } 

什么也没有发生我想到的是,输入字段将是透明的,但仍然被证明是一个粉红色是在路上我想做的事。我在这里错过了一堂课吗? 我也可以改变它的背景颜色和它的工作很好,但问题是我不能摆脱那烦人的默认颜色粉红色。

+0

可以复制的问题,或者在这里使用的代码片断功能,或者像jsfiddle.net或codepen外部工具? – gaynorvader

+0

嗨,你可以提供的HTML ..默认的粉红色颜色是导航标签背景颜色.. –

+0

@ChandraShekhar有趣的我认为这是:)我会尽快尝试 –

回答