练习4_猫眼电影.html 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <title>Document</title>
  7. <link rel="stylesheet" href="https://at.alicdn.com/t/c/font_4974983_7d5k4ej4p9u.css">
  8. <style>
  9. /* css reset */
  10. * {
  11. margin: 0;
  12. padding: 0;
  13. }
  14. li {
  15. list-style: none;
  16. }
  17. /* 头部区域 开始 */
  18. .top-fixed{
  19. position: fixed;
  20. top: 0;
  21. left: 0;
  22. width: 100%;
  23. }
  24. .fixed-content .top-fixed header {
  25. height: 1rem;
  26. width: 100%;
  27. background-color: #e54847;
  28. font-size: 0.3rem;
  29. color: #fff;
  30. position: relative;
  31. line-height: 1rem;
  32. text-align: center;
  33. }
  34. .fixed-content .top-menu {
  35. position: absolute;
  36. right: 10px;
  37. top: 0;
  38. }
  39. .fixed-content .top-menu i {
  40. font-size: 30px;
  41. }
  42. /* 头部区域 结束 */
  43. /* 导航区域 开始 */
  44. .nav-left .arr {
  45. display: block;
  46. width: 0;
  47. height: 0;
  48. border-right: 5px solid rgba(0, 0, 0, 0);
  49. border-left: 5px solid rgba(0, 0, 0, 0);
  50. border-bottom: 5px solid rgba(0, 0, 0, 0);
  51. border-top: 5px solid #b0b0b0;
  52. }
  53. nav {
  54. background-color: #fff;
  55. font-size: 0.3rem;
  56. display: flex;
  57. justify-content: space-between;
  58. height: 1rem;
  59. line-height: 1rem;
  60. padding: 0 .2rem;
  61. border-bottom: .02rem solid #e6e6e6;
  62. }
  63. nav .nav-center ul {
  64. display: flex;
  65. }
  66. .nav-left {
  67. display: flex;
  68. }
  69. .nav-left span {
  70. font-size: .28rem;
  71. color: #b0b0b0;
  72. }
  73. .nav-left .arr {
  74. margin-top: .5rem;
  75. }
  76. .nav-center {
  77. font-size: .3rem;
  78. color: #666;
  79. font-weight: 700;
  80. position: relative;
  81. }
  82. .nav-center .tab-line {
  83. position: absolute;
  84. bottom: .08rem;
  85. left: .24rem;
  86. width: .5rem;
  87. height: .06rem;
  88. background-color: #e54847;
  89. border-radius: 1px;
  90. }
  91. .nav-center li {
  92. margin: 0 10px;
  93. }
  94. .nav-right .iconfont {
  95. font-size: .5rem;
  96. color: #e54847;
  97. font-weight: bold;
  98. }
  99. /* 导航区域 结束 */
  100. /* 底部导航区域 开始 */
  101. footer{
  102. height: 1rem;
  103. width: 100%;
  104. border-top: .01rem solid #d8d8d8;
  105. position: fixed;
  106. bottom: 0;
  107. left: 0;
  108. background-color: #fff;
  109. }
  110. footer ul{
  111. display: flex;
  112. justify-content: space-around;
  113. }
  114. footer ul li{
  115. font-size: .2rem;
  116. color: #696969;
  117. text-align: center;
  118. padding-top: .1rem;
  119. }
  120. footer li .iconfont{
  121. font-size: .5rem;
  122. }
  123. footer .active{
  124. color: #f03d37;
  125. }
  126. /* 底部导航区域 结束 */
  127. .scroll-content{
  128. height: 500vh;
  129. background-color: blue;
  130. }
  131. </style>
  132. </head>
  133. <body>
  134. <div class="app">
  135. <!-- 顶部导航及底部导航区域 -->
  136. <div class="fixed-content">
  137. <div class="top-fixed">
  138. <!-- 头部区域 开始 -->
  139. <header>
  140. <span>猫眼电影</span>
  141. <div class="top-menu">
  142. <i class="iconfont icon-ego-menu"></i>
  143. </div>
  144. </header>
  145. <!-- 头部区域 结束 -->
  146. <!-- 导航区域 开始 -->
  147. <nav>
  148. <div class="nav-left">
  149. <span>北京</span>
  150. <i class="arr"></i>
  151. </div>
  152. <div class="nav-center">
  153. <ul>
  154. <li>热映</li>
  155. <li>影院</li>
  156. <li>待映</li>
  157. </ul>
  158. <div class="tab-line"></div>
  159. </div>
  160. <div class="nav-right">
  161. <i class="iconfont icon-search"></i>
  162. </div>
  163. </nav>
  164. <!-- 导航区域 结束 -->
  165. </div>
  166. <footer>
  167. <ul>
  168. <li class="active">
  169. <i class="iconfont icon-dianying"></i>
  170. <p>电影</p>
  171. </li>
  172. <li>
  173. <i class="iconfont icon-shipin"></i>
  174. <p>视频</p>
  175. </li>
  176. <li>
  177. <i class="iconfont icon-yanchu"></i>
  178. <p>演出</p>
  179. </li>
  180. <li>
  181. <i class="iconfont icon-wode"></i>
  182. <p>我的</p>
  183. </li>
  184. </ul>
  185. </footer>
  186. </div>
  187. <!-- 滚动区域 内容区域 -->
  188. <div class="scroll-content"></div>
  189. </div>
  190. <script src="./js/rem.js"></script>
  191. <script>
  192. </script>
  193. </body>
  194. </html>