Try the following working example using custom icons (using jQuery Mobile 1.2.0):
Create the css file mycss.css and include the following in it:
.ui-icon-custom { background: url("../img/run.png") no-repeat rgba(0, 0, 0, 0.4) !important; }
where run.png is the name of your custom icon.
Then in your html file include the following:
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" /> <script src="http://code.jquery.com/jquery-1.8.2.min.js"></script> <script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script> <link rel="stylesheet" type="text/css" href="./css/mycss.css"/> </head> <body> <div data-role="page"> <div data-role="content"> <h1>This is my content</h1> </div> <div data-role="footer" data-position="fixed" data-tap-toggle="false"> <div data-role="navbar"> <ul> <li><a href="#one" data-icon="custom">Entry</a></li> <li><a href="#two" data-icon="custom">Winner</a></li> <li><a href="#three" data-icon="custom">Gallery</a></li> </ul> </div> </div> </div> </body> </html>
Screenshot (iPhone 5):

PS: Pay attention to the path of your css / png files!
Let me know if this works for you.
Littm
source share