demo.css 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. font-size: 16px;
  5. list-style: none;
  6. text-decoration: none;
  7. box-sizing: border-box;
  8. }
  9. #box {
  10. width: 947px;
  11. height: 850px;
  12. border: 1px solid #000;
  13. margin: 25px auto;
  14. }
  15. #container {
  16. width: 910px;
  17. height: 100%;
  18. margin:0 auto;
  19. }
  20. /* 头部样式代码 */
  21. #header {
  22. width: 100%;
  23. height: 66px;
  24. overflow: hidden;
  25. border-bottom: 2px solid rgb(189, 59, 59);
  26. }
  27. #header .logo {
  28. width: 349px;
  29. height: 100%;
  30. float: left;
  31. }
  32. #header .logo img {
  33. width: 118px;
  34. height: 49px;
  35. margin-top: 10px;
  36. }
  37. #header .pictureMsg {
  38. width: 561px;
  39. height: 100%;
  40. float: left;
  41. }
  42. #header .pictureMsg .img1 {
  43. width: 425px;
  44. height: 37px;
  45. margin-top: 22px;
  46. }
  47. #header .pictureMsg .img2 {
  48. width: 122px;
  49. height: 36px;
  50. margin-left: 8px;
  51. }
  52. /* 主体代码 */
  53. #main {
  54. width: 100%;
  55. }
  56. /* 第一部分 */
  57. #main .nav {
  58. width: 100%;
  59. height: 70px;
  60. padding-top: 9px;
  61. overflow: hidden;
  62. }
  63. #main .nav .list {
  64. width: 148px;
  65. height: 50px;
  66. float: left;
  67. margin-left: 4px;
  68. border-right: 1px solid #eee;
  69. }
  70. #main .nav .list:first-child {
  71. margin-left: 0;
  72. }
  73. #main .nav .list ul:first-child {
  74. overflow: hidden;
  75. }
  76. #main .nav .list ul:first-child li {
  77. float: left;
  78. margin-left: 5px;
  79. }
  80. #main .nav .list ul:first-child li a {
  81. color: #000;
  82. font-size: 13px;
  83. }
  84. #main .nav .list ul:first-child li:first-child {
  85. font-weight: bold;
  86. margin-left: 0;
  87. }
  88. #main .nav .list ul:last-child {
  89. overflow: hidden;
  90. }
  91. #main .nav .list ul:last-child li {
  92. float: left;
  93. margin-left: 5px;
  94. }
  95. #main .nav .list ul:last-child li a {
  96. color: #000;
  97. font-size: 13px;
  98. }
  99. #main .nav .list ul:last-child li:first-child {
  100. font-weight: bold;
  101. margin-left: 0;
  102. }
  103. #main .nav .list ul li:hover a {
  104. color: aqua;
  105. }
  106. /* 第二部分 */
  107. #main .banner {
  108. width: 100%;
  109. height: 93px;
  110. }
  111. #main .banner img {
  112. width: 100%;
  113. height: 100%;
  114. }
  115. /* 第三部分 */
  116. #main .msg {
  117. width: 100%;
  118. height: 486px;
  119. margin-top: 20px;
  120. overflow: hidden;
  121. }
  122. #main .msg .msg_left {
  123. width: 600px;
  124. height: 100%;
  125. float: left;
  126. overflow: hidden;
  127. border-top: 1px solid #eee;
  128. }
  129. #main .msg .msg_left .news {
  130. width: 202px;
  131. height: 100%;
  132. float: left;
  133. }
  134. #main .msg .msg_left .news .newsTop {
  135. width: 100%;
  136. height: 37px;
  137. overflow: hidden;
  138. }
  139. #main .msg .msg_left .news .newsTop .tip {
  140. overflow: hidden;
  141. float: left;
  142. margin-top: 5px;
  143. }
  144. #main .msg .msg_left .news .newsTop .tip img{
  145. width: 22px;
  146. height: 22px;
  147. float: left;
  148. margin-top: 3px;
  149. }
  150. #main .msg .msg_left .news .newsTop .tip p{
  151. float: left;
  152. font-size: 21px;
  153. }
  154. #main .msg .msg_left .news .newsTop .tip p:hover {
  155. font-size: 24px;
  156. font-weight: bold;
  157. }
  158. #main .msg .msg_left .news .newsTop .music {
  159. float: right;
  160. margin-top: 5px;
  161. }
  162. #main .msg .msg_left .news .newsTop .music p{
  163. font-size: 21px;
  164. }
  165. #main .msg .msg_left .news .newsTop .music p:hover {
  166. font-size: 24px;
  167. font-weight: bold;
  168. }
  169. #main .msg .msg_left .news .newsBottom dl:first-child {
  170. margin-top: 20px;
  171. }
  172. #main .msg .msg_left .news .newsBottom dl:last-child {
  173. margin-top: 40px;
  174. }
  175. #main .msg .msg_left .news .newsBottom dl {
  176. width: 190px;
  177. height: 163px;
  178. margin: 0 auto;
  179. }
  180. #main .msg .msg_left .news .newsBottom dl dt {
  181. width: 190px;
  182. height: 120px;
  183. }
  184. #main .msg .msg_left .news .newsBottom dl dt img {
  185. width: 100%;
  186. height: 100%;
  187. }
  188. #main .msg .msg_left .news .newsBottom dl dd {
  189. font-size: 14px;
  190. margin-top: 5px;
  191. }
  192. #main .msg .msg_left .news .newsBottom dl dd span {
  193. font-size: 14px;
  194. margin-left: 4px;
  195. }
  196. #main .msg .msg_left .list {
  197. width: 380px;
  198. height: 100%;
  199. float: right;
  200. }
  201. #main .msg .msg_left .list .listTop {
  202. width: 100%;
  203. height: 30px;
  204. padding-top: 10px;
  205. }
  206. #main .msg .msg_left .list .listTop p {
  207. color: #ccc;
  208. margin-left: 241px;
  209. }
  210. #main .msg .msg_left .list .listBottom ul:first-child {
  211. margin-top: 27px;
  212. margin-left: 47px;
  213. }
  214. #main .msg .msg_left .list .listBottom ul:last-child {
  215. margin-top: 40px;
  216. margin-left: 47px;
  217. }
  218. #main .msg .msg_left .list .listBottom ul li:first-child a {
  219. font-weight: bold;
  220. }
  221. #main .msg .msg_left .list .listBottom ul li {
  222. line-height: 1.6;
  223. }
  224. #main .msg .msg_left .list .listBottom ul li a {
  225. overflow: hidden;
  226. display: block;
  227. }
  228. #main .msg .msg_left .list .listBottom ul li a span:first-child {
  229. display: block;
  230. float: left;
  231. width: 5px;
  232. height: 5px;
  233. background-color: #ccc;
  234. border-radius: 50%;
  235. margin-top: 10px;
  236. }
  237. #main .msg .msg_left .list .listBottom ul li a span:last-child {
  238. display: block;
  239. float: left;
  240. margin-left: 5px;
  241. }
  242. #main .msg .msg_left .list .listBottom ul li a span {
  243. color: #000;
  244. }
  245. #main .msg .msg_right {
  246. width: 285px;
  247. height: 450px;
  248. float: right;
  249. border: 1px solid #ccc;
  250. border-top: 1px solid #f00;
  251. }
  252. #main .msg .msg_right .title {
  253. font-size: 22px;
  254. color: #f00;
  255. margin-top: 10px;
  256. font-weight: bold;
  257. margin-left: 14px;
  258. }
  259. #main .msg .msg_right dl {
  260. width: 253px;
  261. height: 53px;
  262. overflow: hidden;
  263. margin: 23px auto 0;
  264. border-bottom: 1px solid #ccc;
  265. }
  266. #main .msg .msg_right dl dt {
  267. width: 38px;
  268. height: 38px;
  269. float: left;
  270. margin-top: 6px;
  271. }
  272. #main .msg .msg_right dl dt img{
  273. width: 100%;
  274. height: 100%;
  275. border-radius: 8px;
  276. }
  277. #main .msg .msg_right dl dd {
  278. float: left;
  279. margin-top: 4px;
  280. margin-left: 10px;
  281. }
  282. #main .msg .msg_right dl dd .options {
  283. color: #ccc;
  284. }
  285. /* 第四部分 */
  286. #main .attract {
  287. width: 100%;
  288. height: 81px;
  289. background: #eee;
  290. }
  291. /* 页尾代码 */
  292. #footer {
  293. width: 100%;
  294. height: 34px;
  295. background: #000;
  296. }