简体   繁体   中英

how to change search icon white to black on white background jquery mobile

I am working in jquery mobile i need to change white icon on search input to black.

here is my code

<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>

Here is jsfiddle

You can replace the background-image value with images/icons-18-black.png by add this CSS:

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

Here is your fiddle with the updated code http://jsfiddle.net/rBu3W/3/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM