demo.css 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. list-style: none;
  5. text-decoration: none;
  6. box-sizing: border-box;
  7. }
  8. /* 主体 给宽不给高 */
  9. #box {
  10. width: 100%;
  11. height: auto;
  12. }
  13. /* 头部 */
  14. #header {
  15. width: 100%;
  16. height: 75px;
  17. }
  18. #header .container {
  19. width: 1260px;
  20. height: 100%;
  21. /* 已知宽高盒子居中 */
  22. margin: 0 auto;
  23. overflow: hidden;
  24. }
  25. #header .container .partOne {
  26. width: 149px;
  27. height: 43px;
  28. float: left;
  29. margin-top: 14px;
  30. background: url(./images/logo.png);
  31. background-position: 219px -4px;
  32. }
  33. #header .container .partTwo {
  34. width: 351px;
  35. height: 75px;
  36. float: left;
  37. margin-left: 65px;
  38. line-height: 75px;
  39. position: relative;
  40. }
  41. #header .container .partTwo ul {
  42. overflow: hidden;
  43. }
  44. #header .container .partTwo ul li {
  45. float: left;
  46. margin-left: 30px;
  47. }
  48. #header .container .partTwo ul li:first-child {
  49. margin-left: 0;
  50. }
  51. #header .container .partTwo ul li a {
  52. font-size: 16px;
  53. color: #000000;
  54. }
  55. #header .container .partTwo ul li:first-child a {
  56. color: #31ccff;
  57. }
  58. #header .container .partTwo ul li a:hover {
  59. color: #31ccff;
  60. }
  61. /* 定位图标 */
  62. #header .container .partTwo .btn {
  63. width: 37px;
  64. height: 14px;
  65. background-color: #f5f7f9;
  66. border-radius: 8px;
  67. border: solid 1px #dddddd;
  68. text-align: center;
  69. line-height: 13px;
  70. position: absolute;
  71. top: 12px;
  72. right: 7px;
  73. font-size: 12px;
  74. color: #999999;
  75. }
  76. #header .container .partThree {
  77. width: 102px;
  78. height: 38px;
  79. color: #fff;
  80. background: #1ebcf0;
  81. float: right;
  82. margin-top: 17px;
  83. font-size: 16px;
  84. text-align: center;
  85. line-height: 38px;
  86. border-radius: 4px;
  87. /* opacity: 0; */
  88. /* 元素消失 彻底将元素从页面中删除 display:none */
  89. /* display: none; */
  90. /* 显示元素 */
  91. /* display: block; */
  92. }
  93. #header .container .partThree:hover {
  94. background: #31ccff;
  95. /* opacity: 1; */
  96. }
  97. /* 主体 */
  98. #main {
  99. width: 100%;
  100. height: auto;
  101. }
  102. #main .partOne {
  103. width: 100%;
  104. height: 482px;
  105. background: url("./images/banner.jpg");
  106. position: relative;
  107. }
  108. #main .partOne .search {
  109. width: 692px;
  110. height: 58px;
  111. overflow: hidden;
  112. position: absolute;
  113. top: 218px;
  114. left: 616px;
  115. border-radius: 4px;
  116. background: rgba(0, 0, 0, 0.2);
  117. }
  118. #main .partOne .search input {
  119. width: 583px;
  120. height: 50px;
  121. outline: none;
  122. float: left;
  123. border: 1px solid #ccc;
  124. padding-left: 20px;
  125. border-bottom-left-radius: 4px;
  126. border-top-left-radius: 4px;
  127. margin-left: 6px;
  128. margin-top: 4px;
  129. }
  130. #main .partOne .search img {
  131. width: 98px;
  132. height: 50px;
  133. float: left;
  134. margin-top: 4px;
  135. }
  136. #main .partTwo {
  137. width: 1300px;
  138. height: 300px;
  139. margin: 0 auto;
  140. margin-top: 110px;
  141. overflow: hidden;
  142. margin-bottom: 40px;
  143. }
  144. #main .partTwo dl {
  145. width: 290px;
  146. height: 200px;
  147. float: left;
  148. margin-left: 30px;
  149. position: relative;
  150. }
  151. #main .partTwo dl .partTwo-one {
  152. position: absolute;
  153. bottom: 0;
  154. left: 0;
  155. width: 100%;
  156. height: 50px;
  157. text-align: center;
  158. background-color: rgba(0, 0, 0, 0.5);
  159. color: #fff;
  160. line-height: 50px;
  161. opacity: 0;
  162. }
  163. #main .partTwo dl .partTwo-one:hover {
  164. opacity: 1;
  165. }
  166. #main .partTwo dl dd {
  167. margin: 40px 0 0 0;
  168. overflow: hidden;
  169. }
  170. #main .partTwo dl dd p {
  171. width: 122px;
  172. height: 36px;
  173. border: 1px solid #dfdfdf;
  174. float: left;
  175. font-size: 14px;
  176. text-align: center;
  177. line-height: 36px;
  178. }
  179. #main .partTwo dl dd p:hover {
  180. color: #31ccff;
  181. }
  182. #main .partTwo dl dd .news {
  183. float: left;
  184. }
  185. #main .partTwo dl dd .vase {
  186. float: right;
  187. }
  188. #main .partThree {
  189. width: 100%;
  190. height: 608px;
  191. background: #eee;
  192. }
  193. #main .partThree .list {
  194. width: 1260px;
  195. height: auto;
  196. margin: 0 auto;
  197. padding-top: 60px;
  198. }
  199. #main .partThree .pTone {
  200. width: 1260px;
  201. height: 420px;
  202. overflow: hidden;
  203. }
  204. #main .partThree .pTone .report {
  205. float: left;
  206. }
  207. #main .partThree .pTtwo {
  208. width: 936px;
  209. height: 420px;
  210. float: right;
  211. }
  212. #main .partThree .pTtwo img {
  213. margin-left: 27px;
  214. }
  215. #main .partThree .pTtwo img:nth-child(1) {
  216. margin-left: 0;
  217. }
  218. #main .partThree .pTtwo img:nth-child(4) {
  219. margin-left: 0;
  220. margin-top: 15px;
  221. }
  222. #main .partThree .rest {
  223. width: 1260px;
  224. margin: 40px 0;
  225. height: 48px;
  226. }
  227. #main .partThree .rest ul {
  228. overflow: hidden;
  229. }
  230. #main .partThree .rest ul li{
  231. float: left;
  232. width: 140px;
  233. height: 48px;
  234. border: 1px solid #dfdfdf;
  235. text-align: center;
  236. line-height: 48px;
  237. font-size: 14px;
  238. background: #fff;
  239. margin-left: 20px;
  240. border-radius: 4px;
  241. }
  242. #main .partThree .rest ul li:first-child {
  243. margin-left: 0;
  244. }
  245. #main .partThree .rest ul li a {
  246. color: #000;
  247. }
  248. #main .partThree .rest ul li a:hover {
  249. color: #31ccff;
  250. }