En esta parte veremos como crear elementos buttons y diferentes opciones para personalizarlos.
Código del capítulo. buttons.php ...
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Buttons</title> <link rel="stylesheet" href="jquery.mobile/jquery.mobile-1.4.5.css"> <script src="jquery.mobile/jquery.js"></script> <script src="jquery.mobile/jquery.mobile-1.4.5.js"></script> </head> <body> <div data-role="page" data-theme="a"> <div data-role="header"> <h1>Buttons</h1> </div> <div data-role="main"> <div class="ui-content"> <a href="#" data-role="button">Link Button</a> <button type="button">Simple button</button> <button type="submit" data-mini="true">Mini button</button> <button type="button" data-icon="home">Icon button</button> <button type="button" data-icon="home" data-iconpos="right">Icon button right</button> <button type="button" data-icon="home" data-iconpos="top">Icon button top</button> <button type="button" data-icon="home" data-iconpos="bottom">Icon button bottom</button> <button type="button" data-icon="home" data-iconpos="notext">Icon button notext</button> <button type="button" data-inline="true">button inline</button> <button type="button" data-inline="true">button inline</button> <button type="button" data-theme="b">Button theme b</button> <div data-role="controlgroup" data-type="horizontal"> <button type="button" data-icon="info" data-iconpos="notext">Button 1</button> <button type="button" data-icon="gear" data-iconpos="notext">Button 2</button> <button type="button" data-icon="location" data-iconpos="notext">Button 3</button> </div> <button type="button" class="ui-disabled">Button desactivado</button> </div> </div> <div data-role="footer"> <div class="ui-content"> <small>© Tutorial jQuery Mobile</small> </div> </div> </div> </body> </html>
Tutorial completo de jQuery Mobile en Youtube
No hay comentarios:
Publicar un comentario