demo.css 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. list-style: none;
  5. text-decoration: none;
  6. box-sizing: border-box;
  7. }
  8. /* 页眉 */
  9. #header {
  10. width: 100%;
  11. height: 75px;
  12. }
  13. #header .nav {
  14. width: 1250px;
  15. height: 100%;
  16. margin: 0 auto;
  17. overflow: hidden;
  18. }
  19. #header .nav .partOne {
  20. width: 151px;
  21. height: 50px;
  22. float: left;
  23. padding-top: 10px;
  24. }
  25. #header .nav .logo {
  26. width: 151px;
  27. height: 50px;
  28. background: url("./images/soso.png");
  29. background-position-x: -206px;
  30. background-position-y: 3px;
  31. }
  32. #header .nav .partTwo {
  33. float: left;
  34. height: 100%;
  35. line-height: 75px;
  36. margin-left: 65px;
  37. position: relative;
  38. }
  39. #header .nav .partTwo ul {
  40. overflow: hidden;
  41. }
  42. #header .nav .partTwo ul li {
  43. float: left;
  44. margin-left: 35px;
  45. }
  46. #header .nav .partTwo ul li:first-child a {
  47. color: #31CCFF;
  48. }
  49. #header .nav .partTwo ul li:first-child {
  50. margin-left: 0;
  51. }
  52. #header .nav .partTwo ul li a:hover {
  53. color: #31CCFF;
  54. }
  55. #header .nav .partTwo .beta {
  56. width: 39px;
  57. height: 16px;
  58. background: #F5F7F9;
  59. position: absolute;
  60. left: 384px;
  61. top: 10px;
  62. font-size: 14px;
  63. line-height: 16px;
  64. color: #999999;
  65. text-align: center;
  66. border-radius: 30px;
  67. border:1px solid #dddddd;
  68. }
  69. #header .nav .partThree {
  70. width: 102px;
  71. height: 38px;
  72. float: right;
  73. margin-top: 18px;
  74. }
  75. #header .nav .partThree .btn {
  76. width: 100%;
  77. height: 100%;
  78. background: #1ebcf0;
  79. color: #fff;
  80. font-size: 16px;
  81. text-align: center;
  82. line-height: 38px;
  83. border-radius: 4px;
  84. }
  85. #header .nav .partThree .btn:hover {
  86. background: #31ccff;
  87. }
  88. /* 主体 */
  89. #main .banner {
  90. width: 100%;
  91. height: 480px;
  92. position: relative;
  93. }
  94. #main .banner img {
  95. width: 100%;
  96. height: 100%;
  97. }
  98. #main .banner .search {
  99. width: 692px;
  100. height: 58px;
  101. background: rgba(0,0,0,.15);
  102. overflow: hidden;
  103. position: absolute;
  104. top: 214px;
  105. left: 606px;
  106. }
  107. #main .banner .search input {
  108. width: 588px;
  109. height: 50px;
  110. float: left;
  111. padding: 15px;
  112. color: #999999;
  113. outline: none;
  114. margin-top: 4px;
  115. margin-left: 3px;
  116. border: 1px solid #adadad;
  117. border-top-left-radius: 4px;
  118. border-bottom-left-radius: 4px;
  119. background: rgba(255,255,255,.88);;
  120. }
  121. #main .banner .search img {
  122. width: 97px;
  123. height: 50px;
  124. float: left;
  125. margin-top: 4px;
  126. }