HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Button is an integral part of the mobile app, app different styles, different buttons required style.
By default, the button display styleas: display: inline-block.
<button class="button"> Default </button> <button class="button button-light"> button-light </button> <button class="button button-stable"> button-stable </button> <button class="button button-positive"> button-positive </button> <button class="button button-calm"> button-calm </button> <button class="button button-balanced"> button-balanced </button> <button class="button button-energized"> button-energized </button> <button class="button button-assertive"> button-assertive </button> <button class="button button-royal"> button-royal </button> <button class="button button-dark"> button-dark </button>
button-block style button isdisplayed: display: block, it will completely fill the width of the parent element, contained within the margin properties padding.
<button class="button button-block button-positive"> Block Button </button>
Use button-full type, you can make the button to display full width, and does not include padding padding.
<button class="button button-full button-positive"> Full Width Block Button </button>
button-large to large buttons, button-small to small buttons.
<button class="button button-small button-assertive"> Small Button </button> <button class="button button-large button-positive"> Large Button </button>
button-outline set transparent background.
<button class="button button-outline button-positive"> Outlined Button </button>
button-clear button to set a transparent background and no border.
<button class="button button-clear button-positive"> Clear Button </button>
We can add an icon on the button.
<button class="button"> <i class="icon ion-loading-c"></i> Loading/en. </button> <button class="button icon-left ion-home">Home</button> <button class="button icon-left ion-star button-positive">Favorites</button> <a class="button icon-right ion-chevron-right button-calm">Learn More</a> <a class="button icon-left ion-chevron-left button-clear button-dark">Back</a> <button class="button icon ion-gear-a"></button> <a class="button button-icon icon ion-settings"></a> <a class="button button-outline icon-right ion-navicon button-balanced">Reorder</a>
Header / footer can add buttons, button style according to the head / bottom is set, so you do not need to add extra style to the button.
<div class="bar bar-header"> <button class="button icon ion-navicon"></button> <h1 class="title">Header Buttons</h1> <button class="button">Edit</button> </div>
button-clear class can not set the background and border header / footer button.
<div class="bar bar-header"> <button class="button button-icon icon ion-navicon"></button> <div class="h1 title">Header Buttons</div> <button class="button button-clear button-positive">Edit</button> </div>
<div class="button-bar"> <a class="button">First</a> <a class="button">Second</a> <a class="button">Third</a> </div>