美团demo2

2018-06-11 14:16 更新

<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style> *{ margin: 0;padding: 0; box-sizing: border-box; } html,body{ height: 100%; } body{ display: flex; flex-direction: column; } header{ height: 14.44vw; width: 100%; background-color: #f9f9f9; display: flex; justify-content: space-around; align-items: center; border-bottom: 0.1vw solid #b1b1b1; }

  1. header div span{
  2. display: block;
  3. font-size: 3.7vw;
  4. width: 28vw;
  5. height: 100%;
  6. white-space: nowrap;
  7. overflow: hidden;
  8. text-overflow: ellipsis;
  9. }
  10. header input{
  11. /*background: url(img/search.jpg) no-repeat left;
  12. background-position-x: 14vw;*/
  13. background: url(img/search.jpg) no-repeat left;
  14. background-position-x: 4vw;
  15. border-style: none;
  16. height: 8.52vw;
  17. width: 57.96vw;
  18. background-color: #fff;
  19. text-align: center;
  20. border-radius: 8vw;
  21. color: #9a9a9a;
  22. font-size: 3.2vw;
  23. }
  24. nav{
  25. height: 12.2vw;
  26. /*background-color: yellow;*/
  27. display: flex;
  28. justify-content: space-around;
  29. align-items :center;
  30. flex-wrap: wrap;
  31. align-content: flex-start;
  32. position: relative;
  33. }
  34. nav a{
  35. font-size: 3.7vw;
  36. color: #646464;
  37. text-decoration: none;
  38. }
  39. section{
  40. height: 24vw;
  41. background-color: #f0f1f3;
  42. border-bottom: 0.2vw solid #d7d7d7 ;
  43. display: flex;
  44. justify-content: space-around;
  45. align-items:center;
  46. flex-wrap: wrap;
  47. /*align-content: flex-start;*/
  48. }
  49. section div{
  50. width: 21.57vw;
  51. height:8.33vw ;
  52. background-color: #fff;
  53. border-radius: 4vw;
  54. border: 0.2vw solid #e1e1e1;
  55. display: flex;
  56. justify-content: center;
  57. align-items: center;
  58. }
  59. section div span {
  60. font-size: 3.24vw;
  61. color: #9b9b9b;
  62. }
  63. footer{
  64. height: 14.63vw;
  65. /*background-color: yellow;*/
  66. display: flex;
  67. justify-content: space-around;
  68. align-items: center;
  69. }
  70. main{
  71. flex: 1;
  72. overflow: auto;
  73. background-color: #ccc;
  74. }
  75. footer div{
  76. display: flex;
  77. flex-direction: column;
  78. justify-content: center;
  79. align-items: center;
  80. }
  81. footer div em{
  82. font-size: 6.12vw!important;
  83. color: #ababab;
  84. }
  85. footer div span{
  86. font-size: 3.15vw;
  87. color: #626262;
  88. }
  89. .con{
  90. height: 51.30vw;
  91. width: 100%;
  92. display: flex;
  93. justify-content: flex-start;
  94. border-top: 0.28vw solid #d7d7d7;
  95. border-bottom: 0.28vw solid #d7d7d7;
  96. background-color: #fff;
  97. margin-bottom: 4vw;
  98. }
  99. .rir{
  100. display: flex;
  101. flex-direction: column;
  102. justify-content: space-around;
  103. }
  104. .rir p{
  105. display: flex;
  106. flex-direction: row;
  107. justify-content: space-between;
  108. }
  109. .img{
  110. display: flex;
  111. justify-content: center;
  112. align-items: center;
  113. margin-right: 8vw;
  114. margin-left: 8vw;
  115. }
  116. .img img{
  117. height: 27.22vw;
  118. }
  119. </style>
  120. <!--
  121. 1080
  122. -->
  123. <link rel="stylesheet" href="font_meituan/iconfont.css" />
  124. <link rel="stylesheet" href="css/iconfont2.css" />
  125. <link rel="stylesheet" href="font_obsbcsm4e5pl23xr/iconfont.css" />
  126. </head>
  127. <body>
  128. <header>
  129. <div>
  130. <span>成都旅游学习网站公略</span>
  131. </div>
  132. <input type="text" placeholder="搜索商家,品类或商圈"/>
  133. </header>
  134. <nav>
  135. <a href="">享美食</a>
  136. <a href="">住酒店</a>
  137. <a href="">爱玩了</a>
  138. <a href="">全部</a>
  139. <span style="position: absolute;left: 0;bottom: 0; width: 25.09vw;height: 0.56vw;background-color: #fb556b;"></span>
  140. </nav>
  141. <section>
  142. <div style="background-color: #fe566d;">
  143. <span>热门</span>
  144. </div>
  145. <div>
  146. <span>热门</span>
  147. </div>
  148. <div>
  149. <span>热门</span>
  150. </div>
  151. <div>
  152. <span>热门</span>
  153. </div>
  154. <div>
  155. <span>热门</span>
  156. </div>
  157. <div>
  158. <span>热门</span>
  159. </div>
  160. <div>
  161. <span>热门</span>
  162. </div>
  163. <div>
  164. <span>热门</span>
  165. </div>
  166. </section>
  167. <main>
  168. <div class="con">
  169. <div class="img">
  170. <img src="img/canting.jpg" alt="" />
  171. </div>
  172. <div class="rir">
  173. <h2 style="font-size: 4.15vw;color: #282e3e;">重庆红板凳火锅
  174. <em style="font-size: 4.25vw;color: #fd9301;background-color: #fff;" class="iconfont icon-quan"></em>
  175. </h2>
  176. <h4 style="font-size: 3.33vw;color: #646464;font-weight: 100;">
  177. <em style="font-size: 3.33vw;color: #f39730; "class="iconfont icon-pingfenwujiaoxing">
  178. </em>
  179. <em style="font-size: 3.33vw;color: #f39730; "class="iconfont icon-pingfenwujiaoxing">
  180. </em>
  181. <em style="font-size: 3.33vw;color: #f39730; "class="iconfont icon-pingfenwujiaoxing">
  182. </em>
  183. <em style="font-size: 3.33vw;color: #f39730; "class="iconfont icon-pingfenwujiaoxing">
  184. </em>
  185. 73/人
  186. </h4>
  187. <p style="font-size:3.33vw ;color: #666666;"> <span>火锅|青羊宫</span> <span style="display: block; border-radius: 0.5vw; width: 10.56vw;height: 5vw;background-color: #9e9e9e;font-size: 2.6vw;text-align: center;line-height: 5vw;">123m</span></p>
  188. <h4 style="font-size:3.33vw ;color: #323232;font-weight: 200;text-indent: 2em;">4555消费</h4>
  189. <hr />
  190. <h5 style="font-size:3.33vw ;color: #666666;">
  191. <em style="font-size: 4.25vw;color: #fd9301;background-color: #fff;"class="iconfont icon-tuan"></em>
  192. 3-4人餐168</h5>
  193. <h5 style="font-size:3.33vw ;color: #666666;">
  194. <em style="font-size: 4.25vw;color: #fd9301;background-color: #fff;"class="iconfont icon-quan"></em>
  195. 4050元,88人餐共用168</h5>
  196. </div>
  197. </div>
  198. <div class="con">
  199. <div class="img">
  200. <img src="img/canting.jpg" alt="" />
  201. </div>
  202. <div class="rir">
  203. <h2 style="font-size: 4.15vw;color: #282e3e;">重庆红板凳火锅
  204. <em style="font-size: 4.25vw;color: #fd9301;background-color: #fff;" class="iconfont icon-quan"></em>
  205. </h2>
  206. <h4 style="font-size: 3.33vw;color: #646464;font-weight: 100;">
  207. <em style="font-size: 3.33vw;color: #f39730; "class="iconfont icon-pingfenwujiaoxing">
  208. </em>
  209. <em style="font-size: 3.33vw;color: #f39730; "class="iconfont icon-pingfenwujiaoxing">
  210. </em>
  211. <em style="font-size: 3.33vw;color: #f39730; "class="iconfont icon-pingfenwujiaoxing">
  212. </em>
  213. <em style="font-size: 3.33vw;color: #f39730; "class="iconfont icon-pingfenwujiaoxing">
  214. </em>
  215. 73/人
  216. </h4>
  217. <p style="font-size:3.33vw ;color: #666666;"> <span>火锅|青羊宫</span> <span style="display: block; border-radius: 0.5vw; width: 10.56vw;height: 5vw;background-color: #9e9e9e;font-size: 2.6vw;text-align: center;line-height: 5vw;">123m</span></p>
  218. <h4 style="font-size:3.33vw ;color: #323232;font-weight: 200;text-indent: 2em;">4555消费</h4>
  219. <hr />
  220. <h5 style="font-size:3.33vw ;color: #666666;">
  221. <em style="font-size: 4.25vw;color: #fd9301;background-color: #fff;"class="iconfont icon-tuan"></em>
  222. 3-4人餐168</h5>
  223. <h5 style="font-size:3.33vw ;color: #666666;">
  224. <em style="font-size: 4.25vw;color: #fd9301;background-color: #fff;"class="iconfont icon-quan"></em>
  225. 4050元,88人餐共用168</h5>
  226. </div>
  227. </div>
  228. <div class="con">
  229. <div class="img">
  230. <img src="img/canting.jpg" alt="" />
  231. </div>
  232. <div class="rir">
  233. <h2 style="font-size: 4.15vw;color: #282e3e;">重庆红板凳火锅
  234. <em style="font-size: 4.25vw;color: #fd9301;background-color: #fff;" class="iconfont icon-quan"></em>
  235. </h2>
  236. <h4 style="font-size: 3.33vw;color: #646464;font-weight: 100;">
  237. <em style="font-size: 3.33vw;color: #f39730; "class="iconfont icon-pingfenwujiaoxing">
  238. </em>
  239. <em style="font-size: 3.33vw;color: #f39730; "class="iconfont icon-pingfenwujiaoxing">
  240. </em>
  241. <em style="font-size: 3.33vw;color: #f39730; "class="iconfont icon-pingfenwujiaoxing">
  242. </em>
  243. <em style="font-size: 3.33vw;color: #f39730; "class="iconfont icon-pingfenwujiaoxing">
  244. </em>
  245. 73/人
  246. </h4>
  247. <p style="font-size:3.33vw ;color: #666666;"> <span>火锅|青羊宫</span> <span style="display: block; border-radius: 0.5vw; width: 10.56vw;height: 5vw;background-color: #9e9e9e;font-size: 2.6vw;text-align: center;line-height: 5vw;">123m</span></p>
  248. <h4 style="font-size:3.33vw ;color: #323232;font-weight: 200;text-indent: 2em;">4555消费</h4>
  249. <hr />
  250. <h5 style="font-size:3.33vw ;color: #666666;">
  251. <em style="font-size: 4.25vw;color: #fd9301;background-color: #fff;"class="iconfont icon-tuan"></em>
  252. 3-4人餐168</h5>
  253. <h5 style="font-size:3.33vw ;color: #666666;">
  254. <em style="font-size: 4.25vw;color: #fd9301;background-color: #fff;"class="iconfont icon-quan"></em>
  255. 4050元,88人餐共用168</h5>
  256. </div>
  257. </div>
  258. </main>
  259. <footer>
  260. <div>
  261. <em class="iconfont icon-shouyeshouye"style="color: #06c0a9;"></em>
  262. <span style="color: #06c0a9;">首页</span>
  263. </div>
  264. <div>
  265. <em class="iconfont icon-fujin"></em>
  266. <span>附近</span>
  267. </div>
  268. <div>
  269. <em class="iconfont icon-wo"></em>
  270. <span>我的</span>
  271. </div>
  272. </footer>
  273. </body>

</html>

以上内容是否对您有帮助:
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号