10.案例.css 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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: 100%;
  10. display: flex;
  11. flex-direction: column;
  12. }
  13. #header {
  14. width: 100%;
  15. height: 1.3rem;
  16. display: flex;
  17. justify-content: space-between;
  18. align-items: center;
  19. background-color: #fff;
  20. position: sticky;
  21. top: 0;
  22. left: 0;
  23. }
  24. #header .logo {
  25. width: 2rem;
  26. height: 0.5rem;
  27. background: url('./images/icon_kugou1.png');
  28. background-position: center;
  29. background-size: cover;
  30. margin-left: 16px;
  31. }
  32. #header .content {
  33. width: 3.4rem;
  34. height: 0.5rem;
  35. margin-right: 16px;
  36. display: flex;
  37. justify-content: space-between;
  38. }
  39. #header .content div {
  40. width: 1.5rem;
  41. height: 0.5rem;
  42. font-size: 0.25rem;
  43. border-radius: 0.35rem;
  44. text-align: center;
  45. line-height: 0.5rem;
  46. color: #fff;
  47. }
  48. #header .content .down {
  49. background: #00BAFF;
  50. }
  51. #header .content .load {
  52. background: linear-gradient(90deg, #F5CE79 0%, #E5BD61 100%);
  53. }
  54. #main {
  55. width: 100%;
  56. flex: 1;
  57. }
  58. #main .nav {
  59. width: 100%;
  60. height: 1.2rem;
  61. padding: 0 0.35rem;
  62. display: flex;
  63. align-items: center;
  64. justify-content: space-between;
  65. font-size: 0.32rem;
  66. position: sticky;
  67. top: 1.3rem;
  68. left: 0;
  69. z-index: 99;
  70. background: linear-gradient(180deg, #F9FAFD 0%, #FFFFFF 100%);
  71. }
  72. #main .nav ul {
  73. width: 5.6rem;
  74. height: 0.6rem;
  75. display: flex;
  76. justify-content: space-between;
  77. align-items: center;
  78. }
  79. #main .nav ul li a{
  80. color: #818894;
  81. }
  82. .active{
  83. font-size: 0.42rem;
  84. font-weight: 600;
  85. color: #000 !important;
  86. }
  87. #main .nav .search {
  88. width: 0.35rem;
  89. height: 0.35rem;
  90. }
  91. #main .container {
  92. width: 100%;
  93. height: 18rem;
  94. padding: 0 0.35rem;
  95. }
  96. #main .container .pictures {
  97. width: 100%;
  98. height: 2rem;
  99. }
  100. #main .container .pictures img {
  101. width: 100%;
  102. height: 100%;
  103. }
  104. #main .news {
  105. width: 100%;
  106. margin-top: 0.4rem;
  107. }
  108. #main .news .tips {
  109. width: 100%;
  110. height: 1rem;
  111. display: flex;
  112. justify-content: space-between;
  113. align-items: center;
  114. }
  115. #main .news .tips .sing {
  116. font-size: 0.32rem;
  117. font-weight: 600;
  118. }
  119. #main .news .tips .more {
  120. font-size: 0.22rem;
  121. color: #818894;
  122. }
  123. #main .news .music {
  124. width: 100%;
  125. height: 6rem;
  126. display: flex;
  127. flex-wrap: wrap;
  128. justify-content: space-between;
  129. }
  130. #main .music .part {
  131. width: 2rem;
  132. height: 2.7rem;
  133. color: #000;
  134. font-size: 0.24rem;
  135. }
  136. #main .music .part img {
  137. width: 2rem;
  138. height: 2rem;
  139. border-radius: 0.15rem;
  140. }
  141. #main .music .part .names {
  142. color: #818894;
  143. }