2
A
回答
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
+1當提問時,建議在其中包含一個最小的,可驗證的示例示例作爲片段本身(僅當需要支持該問題時才需要外部鏈接)......以便那些稍後在遇到問題時看到問題的人同樣的問題,可以很容易找出來(外部鏈接也可以過期!) – kukkuz