demo1.css 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. list-style: none;
  5. text-decoration: none;
  6. box-sizing: border-box;
  7. }
  8. /* 主体 */
  9. #container {
  10. /* 主体给宽不给高 */
  11. width: 1240px;
  12. height: 100%;
  13. border: 1px solid #00f;
  14. /* 盒子居中 */
  15. margin: 0 auto;
  16. }
  17. /* 页眉部分 */
  18. #header {
  19. width: 100%;
  20. height: 64px;
  21. overflow: hidden;
  22. }
  23. #header .headerLeft {
  24. padding: 10px;
  25. float: left;
  26. }
  27. #header .headerMain {
  28. float: left;
  29. overflow: hidden;
  30. margin-left: 350px;
  31. padding-top: 10px;
  32. }
  33. #header .headerMain input {
  34. float: left;
  35. width: 500px;
  36. height: 45px;
  37. outline: none;
  38. border: 1px solid #eee;
  39. border-radius: 30px;
  40. padding: 10px 25px;
  41. background: #f3f7fA;
  42. }
  43. #header .headerMain div {
  44. float: left;
  45. width: 162px;
  46. height: 45px;
  47. background: rgb(90, 140, 233);
  48. color: #fff;
  49. border-radius: 30px;
  50. font-size: 25px;
  51. text-align: center;
  52. line-height: 45px;
  53. margin-left: -162px;
  54. }
  55. #header .headerRight {
  56. float: right;
  57. margin-right: 11px;
  58. overflow: hidden;
  59. }
  60. #header .headerRight .partOne {
  61. margin-top: 17px;
  62. float: left;
  63. }
  64. #header .headerRight .partTwo {
  65. float: left;
  66. margin-top: 19px;
  67. }
  68. #header .headerRight .partThree {
  69. float: left;
  70. margin-top: 11px;
  71. }
  72. #header .headerRight .login {
  73. color: rgb(90, 140, 233);
  74. font-size: 18px;
  75. float: left;
  76. background: #f5f3ee;
  77. padding: 10px;
  78. }
  79. /* 主体部分 */
  80. #main .sell {
  81. width: calc(100% - 10px);
  82. margin-left: 10px;
  83. }
  84. #main .nav {
  85. width: 100%;
  86. height: 60px;
  87. border-radius: 4px;
  88. background: #007ad7;
  89. line-height: 60px;
  90. }
  91. #main .nav ul {
  92. overflow: hidden;
  93. }
  94. #main .nav ul li {
  95. float: left;
  96. padding-left: 28px;
  97. }
  98. #main .nav ul li a {
  99. color: #fff;
  100. font-size: 21px;
  101. }
  102. #main .nav ul li a:hover {
  103. color: #f00;
  104. }
  105. #main .list .listOne .top {
  106. width: 100%;
  107. border-bottom: 5px solid #eaf4f9;
  108. margin-top: 30px;
  109. overflow: hidden;
  110. }
  111. #main .list .listOne .top .topLeft{
  112. float: left;
  113. }
  114. #main .list .listOne .top .topRight {
  115. float: right;
  116. }
  117. #main .list .listOne .top .topLeft ul {
  118. overflow: hidden;
  119. }
  120. #main .list .listOne .top .topLeft ul li{
  121. float: left;
  122. }
  123. #main .list .listOne .top .topLeft ul li:nth-child(odd){
  124. /* padding: 0 20px; */
  125. padding-bottom: 10px;
  126. }
  127. #main .list .listOne .top .topLeft ul li a {
  128. color: #000;
  129. font-size: 25px;
  130. }
  131. #main .list .listOne .top .topLeft ul li:nth-child(even) {
  132. width: 2px;
  133. height: 23px;
  134. margin: 10px 20px 0;
  135. background: #ccc;
  136. }
  137. #main .list .listOne .top .topLeft ul li:first-child {
  138. border-bottom: 1px solid #67b2e1;
  139. }
  140. #main .list .listOne .top .topLeft ul li:first-child a{
  141. color: #67b2e1;
  142. }
  143. #main .list .listOne .top .topRight ul{
  144. overflow: hidden;
  145. }
  146. #main .list .listOne .top .topRight ul li{
  147. float: left;
  148. }
  149. #main .list .listOne .top .topRight ul li a{
  150. color: #000;
  151. margin-right: 15px;
  152. }
  153. #main .list .listOne .top .topRight ul li:last-child a {
  154. margin-right: 0;
  155. }
  156. #main .list .listOne .bottom {
  157. width: 100%;
  158. height: 300px;
  159. background: #00f;
  160. }