basic.html 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  6. <title>Basic Toolbar - jQuery EasyUI Mobile Demo</title>
  7. <link rel="stylesheet" type="text/css" href="../../themes/metro/easyui.css">
  8. <link rel="stylesheet" type="text/css" href="../../themes/mobile.css">
  9. <link rel="stylesheet" type="text/css" href="../../themes/icon.css">
  10. <script type="text/javascript" src="../../jquery.min.js"></script>
  11. <script type="text/javascript" src="../../jquery.easyui.min.js"></script>
  12. <script type="text/javascript" src="../../jquery.easyui.mobile.js"></script>
  13. </head>
  14. <body>
  15. <div class="easyui-navpanel">
  16. <header>
  17. <div class="m-toolbar">
  18. <div class="m-title">Basic Toolbar</div>
  19. <div class="m-left">
  20. <a href="javascript:void(0)" class="easyui-linkbutton m-back" plain="true" outline="true">Back</a>
  21. </div>
  22. <div class="m-right">
  23. <a href="javascript:void(0)" class="easyui-linkbutton m-next" plain="true" outline="true">Next</a>
  24. </div>
  25. </div>
  26. </header>
  27. <ul class="easyui-datalist" data-options="
  28. fit: true,
  29. lines: true,
  30. border: false,
  31. textFormatter: function(value){
  32. return '<a href\'javascript:void(0)\' class=\'datalist-link\'>' + value + '</a>';
  33. },
  34. onClickRow: function(index,row){
  35. $('#p2-title').html(row.text);
  36. $.mobile.go('#p2');
  37. }
  38. ">
  39. <li>Large</li>
  40. <li>Spotted Adult Female</li>
  41. <li>Venomless</li>
  42. <li>Rattleless</li>
  43. <li>Green Adult</li>
  44. <li>Tailless</li>
  45. <li>With tail</li>
  46. <li>Adult Female</li>
  47. </ul>
  48. </div>
  49. <div id="p2" class="easyui-navpanel">
  50. <header>
  51. <div class="m-toolbar">
  52. <span id="p2-title" class="m-title">Detail</span>
  53. <div class="m-left">
  54. <a href="javascript:void(0)" class="easyui-linkbutton m-back" plain="true" outline="true" onclick="$.mobile.back()">Back</a>
  55. </div>
  56. </div>
  57. </header>
  58. <div style="margin:50px 0 0;text-align:center">
  59. <a href="javascript:void(0)" class="easyui-linkbutton" style="width:100px;height:30px" onclick="$.mobile.back()">Go Back</a>
  60. </div>
  61. </div>
  62. </body>
  63. </html>