index.css 3.4 KB

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