<input>
tag
<button>
tag with class="ui-btn"
<a>
tag with class="ui-btn"
data-role="controlgroup"
attribute in jQuery Mobile, along with data-type="horizontal|vertical"
the buttons can be grouped within <div>
tag, where data-type="horizontal|vertical" indicates whether to group buttons horizontally or vertically.
Eg:
[html]
<div data-role="controlgroup" data-type="horizontal">
<p>Control Group</p>
<a href="https://www.facebook.com" class="ui-btn">Facebook</a>
<a href="https://www.twitter.com" class="ui-btn">Twitter</a>
<a href="https://www.google.com" class="ui-btn">Google</a>
</div>
[/html]
By default orientation is vertical and buttons with no margins are grouped and no space is given between the buttons. Only the first and the last buttons have the rounded corners, looks good when grouped together. data-rel="back"
attribute(<a> href value is ignored here).
Eg:[html]<a href="#info" class="ui-btn" data-rel="back">Back</a>[/html]
"ui-btn-inline"
class.
Eg:
[html]<a href="#home" class="ui-btn ui-btn-inline">Click</a>[/html] Class | Description |
---|---|
ui-btn-b | Background of button is changed to black with text-color white (by default it is gray background with black text). |
ui-corner-all | Creates rounded corner button. |
ui-mini | Creates the button and text smaller. |
ui-shadow | Shadows are added to the button. |
<input>
buttons.