jQuery Mobile Cookbook C5R2 - Icons
Example of a list with icons in jQuery Mobile
author(s):
Don Walter
HTML
<script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.js"></script>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.css">
<div data-role="page">
<div data-role="header">
<h1>Icons</h1>
</div>
<div data-role="content">
<ul data-role="listview">
<li>
<a href="details.html">
<img src="http://dl.dropbox.com/u/28829261/album-bff.jpg" width="16" height="16" class="ui-li-icon" />
Ben Folds Five
</a>
</li>
<li>
<a href="details.html">
<img src="http://dl.dropbox.com/u/28829261/album-waea.jpg" width="16" height="16" class="ui-li-icon" />
Whatever And Ever Amen
</a>
</li>
<li>
<a href="details.html">
<img src="http://dl.dropbox.com/u/28829261/album-tuborm.jpg" width="16" height="16" class="ui-li-icon" />
The Unauthorized Biography Of Reinhold Messner
</a>
</li>
</ul>
</div>
</div>