main.html 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Hello MUI</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
  7. <meta name="apple-mobile-web-app-capable" content="yes">
  8. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  9. <link rel="stylesheet" href="css/mui.min.css">
  10. <style>
  11. html,
  12. body {
  13. background-color: white;
  14. }
  15. .mui-content {
  16. background-color: white;
  17. }
  18. .mui-icon-search {
  19. left: 0px !important;
  20. }
  21. .mui-search .mui-placeholder .mui-icon {
  22. color: white;
  23. }
  24. .mui-table-view:before,
  25. .mui-table-view:after {
  26. height: 0px;
  27. }
  28. .icon-menu {
  29. width: 26px;
  30. position: relative;
  31. top: 54px;
  32. float: right;
  33. margin-right: 13px;
  34. }
  35. .triangle-right {
  36. width: 0;
  37. height: 0;
  38. border-top: 5px solid transparent;
  39. border-left: 10px solid gray;
  40. border-bottom: 5px solid transparent;
  41. }
  42. .news-info {
  43. position: relative;
  44. top: -15px;
  45. left: 20px;
  46. color: gray;
  47. }
  48. .pindao {
  49. width: 100px !important;
  50. height: 60px;
  51. }
  52. .pindao-div {
  53. width: 120px !important;
  54. }
  55. </style>
  56. </head>
  57. <body>
  58. <div class="mui-content" style="padding-top: 50px;">
  59. <div id="slider" class="mui-slider mui-to-video" style="min-height: 160px;">
  60. <div class="mui-slider-group mui-slider-loop">
  61. <!-- 额外增加的一个节点(循环轮播:第一个节点是最后一张轮播) -->
  62. <div class="mui-slider-item mui-slider-item-duplicate">
  63. <a>
  64. <img src="images/main/2.png">
  65. </a>
  66. </div>
  67. <!-- 第一张 -->
  68. <div class="mui-slider-item">
  69. <a>
  70. <img src="images/main/1.png">
  71. </a>
  72. </div>
  73. <!-- 第二张 -->
  74. <div class="mui-slider-item">
  75. <a>
  76. <img src="images/main/2.png">
  77. </a>
  78. </div>
  79. <!-- 额外增加的一个节点(循环轮播:最后一个节点是第一张轮播) -->
  80. <div class="mui-slider-item mui-slider-item-duplicate">
  81. <a>
  82. <img src="images/main/1.png">
  83. </a>
  84. </div>
  85. </div>
  86. <div class="mui-slider-indicator">
  87. <div class="mui-indicator mui-active"></div>
  88. <div class="mui-indicator"></div>
  89. </div>
  90. </div>
  91. <div style="width:100%;position: absolute;top: 0px;z-index: 99999;">
  92. <img src="images/main/touying.png" style="height: 30px;width: 100%;position: absolute;top: 50px;" />
  93. <img class="icon-menu" src="images/main/shoucang.png" />
  94. <img class="icon-menu" src="images/main/xiazai.png" />
  95. <img class="icon-menu" src="images/main/lishi.png" />
  96. </div>
  97. <div style="height: 50px;width: 100%;background-color: #000000;margin-top: -4px;">
  98. <img style="width: 45px;margin-top: 13px;margin-left: 10px;" src="images/main/sousuotiao/logo.png" />
  99. <div class="mui-input-row mui-search" style="width: 70%;position: relative;top: -36px;left: 70px;">
  100. <input type="search" style="background-color: #292929;" class="mui-input-clear" placeholder="朗朗钢琴演奏会">
  101. </div>
  102. </div>
  103. <div style="position:relative;top: 15px;left: 10px;width:90%;font-size: 22px;border-left-color: red;border-left-style: solid;padding-left: 8px;">
  104. <span style="display: inline;">精品推荐</span><span style="float: right;font-size: 14px;color: gray;">更多</span>
  105. </div>
  106. <div style="position: relative;top:30px;padding-left: 20px;">
  107. <div class="triangle-right"></div><span class="news-info">因梵蒂诺任FIFA新主席</span>
  108. <div class="triangle-right"></div><span class="news-info">快递“进京”严格实名制</span>
  109. </div>
  110. <ul class="mui-table-view mui-grid-view mui-to-video " style="top: 25px;">
  111. <li class="mui-table-view-cell mui-media mui-col-xs-6">
  112. <a>
  113. <img class="mui-media-object" src="images/main/shipin/5.png">
  114. <div class="mui-media-body">北京大学特级小提琴专题</div>
  115. </a>
  116. </li>
  117. <li class="mui-table-view-cell mui-media mui-col-xs-6">
  118. <a>
  119. <img class="mui-media-object" src="images/main/shipin/6.png">
  120. <div class="mui-media-body">吕曼钢琴演奏</div>
  121. </a>
  122. </li>
  123. <li class="mui-table-view-cell mui-media mui-col-xs-6">
  124. <a><img class="mui-media-object" src="images/main/shipin/7.png">
  125. <div class="mui-media-body">曾辉激情架子鼓</div>
  126. </a>
  127. </li>
  128. <li class="mui-table-view-cell mui-media mui-col-xs-6">
  129. <a>
  130. <img class="mui-media-object" src="images/main/shipin/8.png">
  131. <div class="mui-media-body">上海动漫节萨克斯独奏</div>
  132. </a>
  133. </li>
  134. </ul>
  135. <div style="position:relative;top: 40px;left: 10px;width:90%;font-size: 22px;border-left-color: red;border-left-style: solid;padding-left: 8px;">
  136. <span style="display: inline;">课程分类</span><span style="float: right;font-size: 14px;color: gray;">更多</span>
  137. </div>
  138. <div class="mui-slider" style="position: relative;top: 50px;width: 90%;margin-left:5%;">
  139. <div class="mui-slider-group mui-slider-loop">
  140. <!-- 额外增加的一个节点(循环轮播:第一个节点是最后一张轮播) -->
  141. <div class="mui-slider-item mui-slider-item-duplicate pindao-div">
  142. <a>
  143. <img class="pindao" src="images/main/pindao/4.png">
  144. </a>
  145. </div>
  146. <!-- 第一张 -->
  147. <div class="mui-slider-item pindao-div">
  148. <a>
  149. <img class="pindao" src="images/main/pindao/1.png">
  150. </a>
  151. </div>
  152. <!-- 第二张 -->
  153. <div class="mui-slider-item pindao-div">
  154. <a>
  155. <img class="pindao" src="images/main/pindao/2.png">
  156. </a>
  157. </div>
  158. <!-- 第一张 -->
  159. <div class="mui-slider-item pindao-div">
  160. <a>
  161. <img class="pindao" src="images/main/pindao/3.png">
  162. </a>
  163. </div>
  164. <!-- 第二张 -->
  165. <div class="mui-slider-item pindao-div">
  166. <a>
  167. <img class="pindao" src="images/main/pindao/4.png">
  168. </a>
  169. </div>
  170. <!-- 额外增加的一个节点(循环轮播:最后一个节点是第一张轮播) -->
  171. <div class="mui-slider-item mui-slider-item-duplicate pindao-div">
  172. <a>
  173. <img class="pindao" src="images/main/pindao/1.png">
  174. </a>
  175. </div>
  176. </div>
  177. </div>
  178. <div style="position:relative;top: 63px;left: 10px;width:90%;font-size: 22px;border-left-color: red;border-left-style: solid;padding-left: 8px;">
  179. <span style="display: inline;">人气排行</span><span style="float: right;font-size: 14px;color: gray;">更多</span>
  180. </div>
  181. <ul class="mui-table-view mui-grid-view mui-to-video " style="top: 65px;">
  182. <li class="mui-table-view-cell mui-media mui-col-xs-6">
  183. <a>
  184. <img class="mui-media-object" src="images/main/shipin/2.png">
  185. <div class="mui-media-body">北京大学口琴独奏《卡农》</div>
  186. </a>
  187. </li>
  188. <li class="mui-table-view-cell mui-media mui-col-xs-6">
  189. <a>
  190. <img class="mui-media-object" src="images/main/shipin/1.png">
  191. <div class="mui-media-body">德国音乐大师双簧管独奏</div>
  192. </a>
  193. </li>
  194. <li class="mui-table-view-cell mui-media mui-col-xs-6">
  195. <a><img class="mui-media-object" src="images/main/shipin/3.png">
  196. <div class="mui-media-body">美女钢琴师演绎性感</div>
  197. </a>
  198. </li>
  199. <li class="mui-table-view-cell mui-media mui-col-xs-6">
  200. <a>
  201. <img class="mui-media-object" src="images/main/shipin/4.png">
  202. <div class="mui-media-body">最炫吉他民族风</div>
  203. </a>
  204. </li>
  205. </ul>
  206. </div>
  207. </body>
  208. <script src="js/mui.min.js"></script>
  209. <script>
  210. mui.init({
  211. swipeBack: false //启用右滑关闭功能
  212. });
  213. mui.plusReady(function() {
  214. var slider = mui("#slider");
  215. slider.slider({
  216. interval: 2000
  217. });
  218. mui('.mui-to-video').on('tap','a',function(){
  219. mui.openWindow({
  220. id:'video-win',
  221. url:'pages/video.html'
  222. });
  223. });
  224. });
  225. </script>
  226. </html>