demo.css 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. list-style: none;
  5. text-decoration: none;
  6. box-sizing: border-box;
  7. }
  8. header {
  9. background: #fff;
  10. width: 100%;
  11. position: sticky;
  12. top: 0;
  13. left: 0;
  14. }
  15. header .part1 {
  16. width: 96%;
  17. margin: 0 auto;
  18. height: 65px;
  19. display: flex;
  20. justify-content: space-between;
  21. align-items: center;
  22. }
  23. header img {
  24. width: 94px;
  25. height: 25px;
  26. }
  27. header .msg {
  28. width: 170px;
  29. height: 25px;
  30. display: flex;
  31. justify-content: space-around;
  32. }
  33. header .msg div{
  34. width: 70px;
  35. height: 25px;
  36. font-size: 12px;
  37. border-radius: 13px;
  38. text-align: center;
  39. line-height: 25px;
  40. color: #fff;
  41. background: #00BAFF;
  42. }
  43. header .msg .vip{
  44. background: linear-gradient(90deg, #F5CE79 0%, #E5BD61 100%);;
  45. }
  46. /* background: */
  47. /* 94 25 */
  48. header .part2 {
  49. width: 100%;
  50. height: 59px;
  51. background: rgba(0,0,0,.04);
  52. font-size: 16px;
  53. }
  54. header .part2 ul {
  55. display: flex;
  56. height: 100%;
  57. width: 96%;
  58. margin: 0 auto;
  59. align-items: center;
  60. justify-content: space-evenly;
  61. }
  62. header .part2 ul li {
  63. flex: 1;
  64. text-align: center;
  65. }
  66. header .part2 ul li a {
  67. font-size: 16px;
  68. color: #818894;
  69. }
  70. header .part2 ul li img {
  71. width: 17px;
  72. height: 17px;
  73. }
  74. header .part2 ul li:last-child {
  75. margin-top: 5px;
  76. }
  77. header .part2 ul li:first-child a {
  78. font-size: 21px;
  79. color: #000;
  80. }
  81. main {
  82. background: rgba(0,0,0,.04);
  83. }
  84. main .pictures {
  85. width: 100%;
  86. height: 101px;
  87. display: flex;
  88. justify-content: center;
  89. }
  90. main .pictures img{
  91. width: 345px;
  92. height: 86px;
  93. margin-top: 15px;
  94. }
  95. main .mode1 {
  96. width: 96%;
  97. height: 368px;
  98. background: yellowgreen;
  99. margin: 15px auto 0;
  100. }