Posted By


damientailhades on 09/16/11

Statistics


Viewed 645 times
Favorited by 0 user(s)

JqueryMobile_Basic_Page_Structure


/ Published in: HTML
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>title</title>
  5.  
  6. <meta charset="utf-8">
  7.  
  8. <meta name="viewport" content="width=device-width, nimimum-scale=1, maximum-scale=1">
  9. <meta name="robots" content="noindex, nofollow">
  10.  
  11. <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0b3/jquery.mobile-1.0b3.min.css" />
  12. <link rel="apple-touch-icon" href="/img/icon-qrxel.gif" />
  13.  
  14. <script type="text/javascript" src="http://code.jquery.com/jquery-1.6.3.min.js"></script>
  15. <script type="text/javascript" src="http://code.jquery.com/mobile/1.0b3/jquery.mobile-1.0b3.min.js"></script>
  16.  
  17. </head>
  18. <!-- page item0 -->
  19. <div data-role="page" id="item0" data-title="title Item 0">
  20. <div data-role="header">
  21. <h1>header</h1>
  22. </div>
  23. <div id="picture"></div>
  24. <div data-role="content">
  25. <ul data-role="listview">
  26. <li><a href="#item0">item-0</a></li>
  27. <li><a href="#item1">item-1</a></li>
  28. </ul>
  29. </div>
  30. <div data-role="footer">
  31. <h4>footer</h4>
  32. </div>
  33. </div>
  34. <!-- fin page item0 -->
  35.  
  36. <!-- page item1 -->
  37. <div data-role="page" id="item0" data-title="title Item 1">
  38. <div data-role="header">
  39. <a data-rel="back" data-theme="a">Retour</a>
  40. <h1>header</h1>
  41. </div>
  42. <div id="picture"></div>
  43. <div data-role="content">
  44. <h2>title h2</h2>
  45. <p>voici mon contenu</p>
  46. </div>
  47. <div data-role="footer">
  48. <div data-role="navbar">
  49. <ul>
  50. <li><a data-rel="back" data-theme="a">Retour</a></li>
  51. <li><a data-direction="reverse" data-theme="a" href="#item0">Home</a></li>
  52. </ul>
  53. </div>
  54. <h4>footer</h4>
  55. </div>
  56. </div>
  57. <!-- fin page item1 -->
  58. </body>
  59. </html>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.