2014-02-26 44 views
0

我正在jquery mobile中工作,我需要將搜索輸入上的白色圖標更改爲黑色。如何在白色背景上將搜索圖標白色更改爲黑色jquery mobile

這裏是我的代碼

<div id="dvSearch" data-role="fieldcontain" class="ui-hide-label" > 
    <label id="lblSearch" for="txtsearch">Search</label> 
    <input type="search" id="txtsearch" class="ui-icon-alt" data-i18n="[placeholder]attr.placeholderSearch;" data-theme="a"/> 
</div> 

這裏是jsfiddle

+0

你將不得不改變圖像。 – Era

+0

你能幫我連接到jsfiddle嗎? – skhurams

回答

1

您可以images/icons-18-black.png代替background-image值通過添加此CSS:

.ui-icon-searchfield:after 
{ 
    background-image: url(images/icons-18-black.png); //Remember to update this path 
} 

這裏與更新代碼的提琴http://jsfiddle.net/rBu3W/3/

相關問題