Page 21 - JqueryMobile_Manual
P. 21
21
<a href="#" class="ui-btn ui-corner-all ui-icon-recycle ui-btn-icon-left">Recycle Icon</a>
<a href="#" class="ui-btn ui-corner-all ui-icon-shop ui-btn-icon-left">Shop Icon</a>
<a href="#" class="ui-btn ui-corner-all ui-icon-tag ui-btn-icon-left">Tag Icon</a>
<a href="#" class="ui-btn ui-corner-all ui-icon-user ui-btn-icon-left">User Icon</a>
<a href="#" class="ui-btn ui-corner-all ui-icon-video ui-btn-icon-left">Video Icon</a>
</div>
</div>
</body>
</html>
Positioning icons
tryjqmob_icon_positions.html
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css">
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
</head>
<body>
<div data-role="page" id="pageone">
<div data-role="header">
<h1>Positioning Icons</h1>
</div>
<div data-role="main" class="ui-content">
<p>Positioning Icons:</p>
<a href="#" class="ui-btn ui-icon-search ui-btn-icon-top">Top</a>
<a href="#" class="ui-btn ui-icon-search ui-btn-icon-right">Right</a>
<a href="#" class="ui-btn ui-icon-search ui-btn-icon-bottom">Bottom</a>
<a href="#" class="ui-btn ui-icon-search ui-btn-icon-left">Left</a>
</div>
<div data-role="footer">
<h1>Footer Text</h1>
</div>
</div>
</body>
</html>
Display only the icon
tryjqmob_icon_notext.html
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css">
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
</head>
<body>
<div data-role="page" id="pageone">
<div data-role="header">
<h1>Icons</h1>
</div>