demo1.css 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. list-style: none;
  5. text-decoration: none;
  6. box-sizing: border-box;
  7. }
  8. #box {
  9. width: 946px;
  10. height: 859px;
  11. background-color: f6f6f6;
  12. /* border: 1px solid #000; */
  13. }
  14. .container {
  15. width: 906px;
  16. height: 100%;
  17. margin: 0 auto;
  18. background: #fff;
  19. }
  20. /* 头部样式 */
  21. .header {
  22. width: 100%;
  23. height: 69px;
  24. overflow: hidden;
  25. border-bottom: 3px solid #f00;
  26. }
  27. .header .headerLeft {
  28. width: 349px;
  29. height: 100%;
  30. float: left;
  31. }
  32. .header .headerLeft img {
  33. width: 127px;
  34. height: 53px;
  35. margin-top: 8px;
  36. }
  37. .header .headerRight {
  38. width: 557px;
  39. height: 100%;
  40. float: left;
  41. }
  42. .header .headerRight .picture1 {
  43. width: 426px;
  44. height: 38px;
  45. margin-top: 16px;
  46. }
  47. .header .headerRight .picture2 {
  48. width: 118px;
  49. height: 38px;
  50. margin-top: 16px;
  51. margin-left: 7px;
  52. }
  53. /* 主体样式 */
  54. .main {
  55. width: 100%;
  56. height: 742px;
  57. background: #0f0;
  58. }
  59. /* 主体模块1 */
  60. .main .part-one {
  61. overflow: hidden;
  62. height: 68px;
  63. background: #0ff;
  64. }
  65. .main .part-one div {
  66. width: 129px;
  67. height: 50px;
  68. float: left;
  69. margin-top: 9px;
  70. border-right: 1px solid #ccc;
  71. }
  72. .main .part-one div:last-child {
  73. border: none;
  74. }
  75. .main .part-one div ul {
  76. overflow: hidden;
  77. }
  78. .main .part-one div ul li {
  79. float: left;
  80. padding-left: 7px;
  81. }
  82. .main .part-one div ul li:first-child {
  83. /* padding-left: 0; */
  84. font-weight: bold;
  85. }
  86. .main .part-one .vase1 ul li:first-child {
  87. padding-left: 0;
  88. }
  89. .main .part-one div ul li a {
  90. font-size: 12px;
  91. color: #000;
  92. }
  93. .main .part-one div ul li a:hover {
  94. color: #f00;
  95. }
  96. /* 主体模块2 */
  97. .main .part-two {
  98. width: 906px;
  99. height: 98px;
  100. }
  101. .main .part-two img {
  102. width: 100%;
  103. height: 100%;
  104. }
  105. /* 页尾样式 */
  106. .footer {
  107. width: 100%;
  108. height: 48px;
  109. background: #0ff;
  110. }