index.css 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. list-style: none;
  5. text-decoration: none;
  6. box-sizing: border-box;
  7. }
  8. #header .container {
  9. width: 1260px;
  10. height: 75px;
  11. margin: 0 auto;
  12. }
  13. #header .container .left {
  14. width: 542px;
  15. height: 100%;
  16. float: left;
  17. }
  18. #header .container .left .logo {
  19. width: 149px;
  20. height: 45px;
  21. background: url("./images/1.png");
  22. float: left;
  23. margin-top: 15px;
  24. background-position: 218px 185px;
  25. }
  26. #header .container .left .nav {
  27. width: 323px;
  28. height: 100%;
  29. float: right;
  30. position: relative;
  31. }
  32. #header .container .left .nav ul {
  33. line-height: 75px;
  34. }
  35. #header .container .left .nav ul li {
  36. float: left;
  37. margin-left: 33px;
  38. }
  39. #header .container .left .nav ul li:first-child {
  40. margin-left: 0;
  41. }
  42. #header .container .left .nav ul li a {
  43. color: #333;
  44. }
  45. #header .container .left .nav ul li:first-child a {
  46. color: #31CCFF;
  47. }
  48. #header .container .left .nav ul li:hover a {
  49. color: #31CCFF;
  50. }
  51. #header .container .left .nav .beta {
  52. width: 39px;
  53. height: 16px;
  54. font-size: 12px;
  55. text-align: center;
  56. line-height: 16px;
  57. color: #999;
  58. background: #F5F7F9;
  59. position: absolute;
  60. right: -37px;
  61. top: 15px;
  62. border-radius: 8px;
  63. border: 1px solid #ddd;
  64. }
  65. #header .container .right {
  66. width: 100px;
  67. height: 100%;
  68. float: right;
  69. margin-right: 10px;
  70. }
  71. #header .container .right .btn {
  72. width: 100%;
  73. height: 38px;
  74. color: #fff;
  75. line-height: 38px;
  76. text-align: center;
  77. border-radius: 3px;
  78. background: #1ebcf0;
  79. margin-top: 18px;
  80. border: 1px solid #1ebcf0;
  81. }
  82. #header .container .right .btn:hover {
  83. background: #31CCFF;
  84. }
  85. #main .banner {
  86. width: 100%;
  87. height: 482px;
  88. background: url("./images/2.jpg");
  89. background-repeat: no-repeat;
  90. background-position: center;
  91. }
  92. #main .banner .container {
  93. width: 1260px;
  94. height: 482px;
  95. margin: 0 auto;
  96. position: relative;
  97. }
  98. #main .banner .container .search {
  99. width: 692px;
  100. height: 58px;
  101. background: rgba(0,0,0,.15);
  102. position: absolute;
  103. top: 218px;
  104. left: 281px;
  105. padding: 4px 3px;
  106. border-radius: 3px;
  107. }
  108. #main .banner .container .search input {
  109. width: 588px;
  110. height: 50px;
  111. float: left;
  112. border-top-left-radius: 3px;
  113. border-bottom-left-radius: 3px;
  114. border: 1px solid #adadad;
  115. outline: none;
  116. padding-left: 20px;
  117. }
  118. #main .banner .container .search img {
  119. width: 97px;
  120. height: 50px;
  121. float: left;
  122. }
  123. #main .list {
  124. width: 100%;
  125. height: 388px;
  126. margin-top: 57px;
  127. }
  128. #main .list .container {
  129. width: 1260px;
  130. height: 100%;
  131. margin: 0 auto;
  132. padding-top: 45px;
  133. }
  134. #main .list .container .listItem {
  135. float: left;
  136. margin-left: 33px;
  137. }
  138. #main .list .container .listItem:first-child {
  139. margin-left: 0;
  140. }
  141. #main .list .container .listItem .pictures {
  142. width: 290px;
  143. height: 200px;
  144. position: relative;
  145. }
  146. #main .list .container .listItem .pictures img{
  147. width: 100%;
  148. height: 100%;
  149. }
  150. #main .list .container .listItem .pictures .spring {
  151. width: 100%;
  152. height: 50px;
  153. text-align: center;
  154. line-height: 50px;
  155. color: #fff;
  156. background-color: rgba(0,0,0,.5);
  157. position: absolute;
  158. left: 0;
  159. top: 150px;
  160. display: none;
  161. }
  162. #main .list .container .listItem .pictures:hover .spring {
  163. display: block;
  164. }
  165. #main .list .container .listItem {
  166. width: 290px;
  167. /* position: relative; */
  168. }
  169. #main .list .container .listItem .title {
  170. margin-top: 38px;
  171. width: 290px;
  172. height: 48px;
  173. }
  174. #main .list .container .listItem .title .titleBall,#main .list .container .listItem .title .titleWall {
  175. width: 140px;
  176. height: 48px;
  177. border-radius: 2px;
  178. border: 1px solid #dfdfdf;
  179. text-align: center;
  180. line-height: 48px;
  181. font-size: 14px;
  182. color: #666;
  183. float: left;
  184. }
  185. #main .list .container .listItem .title .titleWall {
  186. float: right;
  187. }
  188. #main .list .container .listItem .title .titleWall:hover {
  189. color: #31CCFF;
  190. }
  191. #main .list .container .listItem .title .titleBall:hover {
  192. color: #31CCFF;
  193. }
  194. #main .nav {
  195. width: 100%;
  196. height: 608px;
  197. background: aqua;
  198. }