2016-10-04 57 views
2

我不知道为什么这不起作用。我已经看过了,找不到任何解决方案。背景图像没有显示在输入框中

查看它LIVE HERE

横幅中的两个输入框附有背景图片,但未显示。

+0

+1当提问时,建议在其中包含一个最小的,可验证的示例示例作为片段本身(仅当需要支持该问题时才需要外部链接)......以便那些稍后在遇到问题时看到问题的人同样的问题,可以很容易找出来(外部链接也可以过期!) – kukkuz

回答

1

更改background: transparent;background-color: transparent;

释:

.jobs-inp { 
    background-image: url(images/magnify-icon.png); 
    background-repeat: no-repeat; 
    background-position: 0 0; 
    padding-left: 15px; 
    background: transparent; 
    font-size: 18px; 
    font-family: Interstate-Regular; 
    color: white; 
    border: 1px solid white; 
    height: 40px; 
    width: 25%; 
} 

background: transparent;覆盖之前的所有背景属性,因为background是所有属性的略写。

+0

Legend ...感谢那 – JkenGJ