Ylbtech-ionic-css:ionic Toggle (toggle switch) |
1, Ionic Toggle (toggle switch)
The toggle switch is similar to the checkbox tag for HTML, but it is easier to use on mobile devices.
The toggle switch can use toggle-assertive to specify the color.
<label class< Span class= "pun" >= "toggle" > <input type= "checkbox" >< Span class= "PLN" > <div class= "track" > <div class= "handle" ></div> </div></LABEL>
The instance has a list of multiple toggle switches. Note that the item class for each option needs to be added after the Item-toggle class.
<ul Class="List"> <li Class="Item Item-toggle">HTML5<label Class= "toggle Toggle-assertive" > <input type= " CheckBox "> <div Class= "track" > <div class= "handle" ></div> </div></label> </li> ... </UL>
Try it?
The results are as follows:
2.
1, HTTP://WWW.RUNOOB.COM/IONIC/IONIC-TOGGLE.HTML2,
|
Ylbtech Source: http://ylbtech.cnblogs.com/ This article is copyright to the author and the blog Park, Welcome to reprint, but without the consent of the author must retain this paragraph, and in the article page obvious location to the original link, otherwise reserves the right to pursue legal responsibility. |
Ionic-css:ionic Toggle (toggle switch)