Page 17 - JqueryMobile_Manual
P. 17
17
<div data-role="main" class="ui-content">
<a href="#" class="ui-btn" data-rel="back">Go Back</a>
</div>
<div data-role="footer">
<h1>Footer Text</h1>
</div>
</div>
</body>
</html>
Change the button color
tryjqmob_button_black.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>Gray and Black Buttons</h1>
</div>
<div data-role="main" class="ui-content">
<p>Normal Buttons:</p>
<a href="#" class="ui-btn">Gray Button (default)</a>
<a href="#" class="ui-btn ui-btn-b">Black Button</a>
<br>
<p>Inline Buttons:</p>
<a href="#" class="ui-btn ui-btn-inline">Gray Button (default)</a>
<a href="#" class="ui-btn ui-btn-inline ui-btn-b">Black Button</a>
</div>
<div data-role="footer">
<h1>Footer Text</h1>
</div>
</div>
</body>
</html>
Buttons with or without rounded corners
tryjqmob_button_corners.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>