Page 18 - Mobile Commerce Technology
P. 18
18
<body>
<div data-role="page" id="pageone">
<div data-role="header">
<h1>Rounded Corners Example</h1>
</div>
<div data-role="main" class="ui-content">
<p>Buttons with and without rounded corners:</p>
<a href="#" class="ui-btn ui-corner-all">Button 1</a>
<a href="#" class="ui-btn">Button 2</a>
<br>
<p>Inline Buttons with and without rounded corners:</p>
<a href="#" class="ui-btn ui-btn-inline ui-corner-all">Button 2</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>
Small or regular size buttons
tryjqmob_button_mini.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>Mini Button Example</h1>
</div>
<div data-role="main" class="ui-content">
<p>A mini button and a normal button:</p>
<a href="#" class="ui-btn ui-mini">Button 1</a>
<a href="#" class="ui-btn">Button 2</a>
<br>
<p>Inline buttons: mini and normal:</p>
<a href="#" class="ui-btn ui-btn-inline ui-mini">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>