demo.css 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  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 #contain {
  13. width: 1260px;
  14. height: 100%;
  15. margin: 0 auto;
  16. overflow: hidden;
  17. }
  18. .header #contain #logo{
  19. width: 149px;
  20. height: 45px;
  21. float: left;
  22. background: url('./images/soso.png');
  23. background-position:217px 123px;
  24. margin-top: 15px;
  25. }
  26. .header #contain #nav{
  27. width: 352px;
  28. height: 100%;
  29. float: left;
  30. margin-left: 68px;
  31. line-height: 75px;
  32. position: relative;
  33. }
  34. .header #contain #nav ul {
  35. overflow: hidden;
  36. }
  37. .header #contain #nav ul li {
  38. float: left;
  39. margin-left: 28px;
  40. }
  41. .header #contain #nav ul li a {
  42. color: #000;
  43. font-size: 16px;
  44. }
  45. .header #contain #nav ul li:first-child a {
  46. color: #31ccff;
  47. }
  48. .header #contain #nav ul li:first-child {
  49. margin-left: 0;
  50. }
  51. .header #contain #nav ul li:hover a {
  52. color: #31ccff;
  53. }
  54. .header #contain #nav #tips {
  55. width: 37px;
  56. height: 14px;
  57. background-color: #f5f7f9;
  58. border-radius: 8px;
  59. border: solid 1px #dddddd;
  60. text-align: center;
  61. line-height: 13px;
  62. font-size: 12px;
  63. color: #999999;
  64. position: absolute;
  65. top: 15px;
  66. right: 14px;
  67. }
  68. .header #contain #btn{
  69. width: 112px;
  70. height: 38px;
  71. float: right;
  72. color: #fff;
  73. text-align: center;
  74. line-height: 38px;
  75. font-size: 16px;
  76. background: #1ebcf0;
  77. border-radius: 4px;
  78. border:1px solid #1ebcf0;
  79. margin-top: 17px;
  80. margin-right: 8px;
  81. }
  82. .header #contain #btn:hover {
  83. background: #31ccff;
  84. }
  85. .main #banner {
  86. width: 100%;
  87. height: 482px;
  88. background: url('./images/banner.jpg') no-repeat;
  89. background-position: center;
  90. }
  91. .main #banner #inp {
  92. width: 692px;
  93. height: 58px;
  94. background: rgba(0, 0, 0, .1);
  95. position: absolute;
  96. top: 215px;
  97. left: 287px;
  98. overflow: hidden;
  99. border-radius: 3px;
  100. padding: 4px 3px;
  101. }
  102. .main #banner #inp input {
  103. float: left;
  104. width: 588px;
  105. height: 50px;
  106. background: rgba(255,255,255,.88);
  107. border: 1px solid #ccc;
  108. outline: none;
  109. border-top-left-radius: 3px;
  110. border-bottom-left-radius: 3px;
  111. font-size: 16px;
  112. padding: 10px 20px;
  113. }
  114. .main #banner #inp img {
  115. float: left;
  116. width: 97px;
  117. height: 50px;
  118. }
  119. .main #banner #contain {
  120. width: 1260px;
  121. height: 100%;
  122. margin: 0 auto;
  123. position: relative;
  124. }
  125. .main #mode1 {
  126. width: 1260px;
  127. height: 388px;
  128. overflow: hidden;
  129. margin: 60px auto 0;
  130. }
  131. .main #mode1 #part{
  132. width: 290px;
  133. height: 288px;
  134. float: left;
  135. margin-left: 33px;
  136. margin-top: 50px;
  137. }
  138. .main #mode1 #part:first-child {
  139. margin-left: 0;
  140. }
  141. .main #mode1 #part #picture {
  142. width: 290px;
  143. height: 200px;
  144. position: relative;
  145. }
  146. .main #mode1 #part #picture img {
  147. width: 290px;
  148. height: 200px;
  149. }
  150. .main #mode1 #part p {
  151. width: 100%;
  152. height: 48px;
  153. margin-top: 41px;
  154. overflow: hidden;
  155. }
  156. .main #mode1 #part p span {
  157. width: 140px;
  158. height: 48px;
  159. font-size: 14px;
  160. text-align: center;
  161. line-height: 48px;
  162. color: #666;
  163. float: left;
  164. border-radius: 2px;
  165. border: 1px solid #dfdfdf;
  166. }
  167. .main #mode1 #part p span:hover {
  168. color:#1ebcf0;
  169. }
  170. .main #mode1 #part p span:last-child {
  171. float: right;
  172. }
  173. .main #mode1 #part #picture #title {
  174. width: 100%;
  175. height: 50px;
  176. color: #fff;
  177. text-align: center;
  178. position: absolute;
  179. top: 150px;
  180. left: 0;
  181. line-height: 50px;
  182. /* z-index: 2; */
  183. background: rgba(0,0,0,.5);
  184. display: none;
  185. }
  186. .main #mode1 #part #picture:hover #title {
  187. display: block;
  188. }
  189. .main #mode2 {
  190. width: 100%;
  191. height: 608px;
  192. background: #f6f6f6;
  193. }
  194. .main #mode3 {
  195. width: 100%;
  196. height: 286px;
  197. }