jQuery Mobile C...login
jQuery Mobile Classic Tutorial
author:php.cn  update time:2022-04-11 13:58:34

jQuery Mobile icon


We can use the icon class to add icons on the <a> and <button> elements in jQuery Mobile and position the icons as follows:


<a href="#anylink" class="ui-btn ui-icon-refresh ui-btn-icon-left">Refresh the page</a>Try it

##<button class="ui-btn
ui-icon-refresh ui-btn-icon-left">Refresh page</button> ;Try it

To add an icon to the<input> button, you can use the data-icon attribute:


##<a href=" #anylink"
data-icon="refresh"
>Refresh the page</a>Try it
We can use the data-icon attribute on the navigation button Add icon:


<a href="#anylink"
data-icon="refresh"
>Refresh the page</a>Try it out
If you want to add an icon to the list button, you can use the data-icon attribute in <li>:

##<li
data-icon="refresh"
><a href="#">Click me</a></li>Try it

Below we list all the available icons provided by jQuery Mobile:

#ValueDescriptionIconInstance##actionalertaudioarrow-d-larrow-d-rarrow-u-larrow-u-rarrow-larrow-rRight Arrowarrow-uUp Arrowarrow-dDown ArrowbackBackbarsColumn##Try it##deleteediteye##mailMail/EnvelopeTry itminusSymbol, minus signTry itnavigationNavigationTry itphonephoneTry itpowerSwitch (On/off)




Action
Try it
Warning
Try it
Video/Audio/Speaker
Try it
Lower left corner
Try it
Lower right corner
Try it
Upper left corner
Try it
Upper right corner
Try it Click
Left Arrow##Try it
Try it
Try it
Try it
Try it
Try it
bullets Fence
Try it
calendarCalendar
Try it
cameracamera
Try it
carat-dDown
Try it
carat-lLeft
Try it
carat-rRight
Try it
carat-uUP
Try it
checkVERIFY TAG
Try it
clockclock
Try it
cloud
Try it
commentComment
Delete (X)
Try it
edit/pencil
Try it
eyeTry it
forbiddenStation Mark
Try it
forwardforward
Try it
gearGear
Try it
gridGrid
Try it
heart心/爱 sign
Try it
homeHome (Homepage)
Try it
infoInformation
Try it
locationLocation/GPS
Try it
lockLock/Padlock
Try it




Try it
plusplus
Try it
recycleRecycle
Try it
refreshRefresh
Try it
searchSearch
Try it
shopshop,wallet,handbag
Try it
star
Try it
tag tag
Try it
useruser
Try it
videoCamera
Try it