Page 19 - JqueryMobile_Manual
P. 19
19
Buttons with or without shadows
tryjqmob_button_shadow.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>Shadow Button Example</h1>
</div>
<div data-role="main" class="ui-content">
<p>Buttons with and without shadow:</p>
<a href="#" class="ui-btn ui-shadow">Button 1</a>
<a href="#" class="ui-btn">Button 2</a>
<br>
<p>Inline Buttons with and without shadow:</p>
<a href="#" class="ui-btn ui-btn-inline ui-shadow">Button 1</a>
<a href="#" class="ui-btn ui-btn-inline">Button 2</a>
</div>
<div data-role="footer">
<h1>Footer Text</h1>
</div>
</div>
</body>
</html>
Chapter 4
jQuery Mobile Button Icons
Add icons to buttons
tryjqmob_icon_all.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="main" class="ui-content">
<a href="#" class="ui-btn ui-corner-all ui-icon-arrow-l ui-btn-icon-left">Left Arrow Icon</a>
<a href="#" class="ui-btn ui-corner-all ui-icon-arrow-r ui-btn-icon-left">Right Arrow Icon</a>
<a href="#" class="ui-btn ui-corner-all ui-icon-arrow-u ui-btn-icon-left">Up Arrow Icon</a>
<a href="#" class="ui-btn ui-corner-all ui-icon-arrow-d ui-btn-icon-left">Down Arrow Icon</a>