index.css 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. html {
  2. font-size: 50px;
  3. }
  4. @media screen and (min-width: 320px) {
  5. html {
  6. font-size: 21.33333333px;
  7. }
  8. }
  9. @media screen and (min-width: 360px) {
  10. html {
  11. font-size: 24px;
  12. }
  13. }
  14. @media screen and (min-width: 375px) {
  15. html {
  16. font-size: 25px;
  17. }
  18. }
  19. @media screen and (min-width: 384px) {
  20. html {
  21. font-size: 25.6px;
  22. }
  23. }
  24. @media screen and (min-width: 400px) {
  25. html {
  26. font-size: 26.66666667px;
  27. }
  28. }
  29. @media screen and (min-width: 414px) {
  30. html {
  31. font-size: 27.6px;
  32. }
  33. }
  34. @media screen and (min-width: 424px) {
  35. html {
  36. font-size: 28.26666667px;
  37. }
  38. }
  39. @media screen and (min-width: 480px) {
  40. html {
  41. font-size: 32px;
  42. }
  43. }
  44. @media screen and (min-width: 540px) {
  45. html {
  46. font-size: 36px;
  47. }
  48. }
  49. @media screen and (min-width: 720px) {
  50. html {
  51. font-size: 48px;
  52. }
  53. }
  54. @media screen and (min-width: 750px) {
  55. html {
  56. font-size: 50px;
  57. }
  58. }
  59. a {
  60. text-decoration: none;
  61. }
  62. body {
  63. min-width: 320px;
  64. margin: 0 auto;
  65. width: 15rem;
  66. line-height: 1.5;
  67. font-family: Arial, Helvetica, sans-serif;
  68. background-color: #f2f2f2;
  69. }
  70. .search-content {
  71. display: flex;
  72. position: fixed;
  73. top: 0;
  74. left: 50%;
  75. width: 15rem;
  76. height: 1.76rem;
  77. transform: translateX(-50%);
  78. background-color: #ffc001;
  79. }
  80. .search-content .classify {
  81. width: 0.88rem;
  82. height: 1.4rem;
  83. background: url(../images/classify.png) no-repeat;
  84. background-size: 0.88rem auto;
  85. margin: 0.22rem 0.5rem 0.14rem 0.48rem;
  86. }
  87. .search-content .search {
  88. flex: 1;
  89. }
  90. .search-content .search input {
  91. box-sizing: border-box;
  92. outline: none;
  93. width: 100%;
  94. border: 0;
  95. height: 1.32rem;
  96. border-radius: 0.66rem;
  97. background-color: #fff2cc;
  98. margin-top: 0.24rem;
  99. font-size: 0.5rem;
  100. padding-left: 1.1rem;
  101. color: #757575;
  102. }
  103. .search-content .login {
  104. width: 1.5rem;
  105. height: 1.4rem;
  106. line-height: 1.4rem;
  107. margin: 0.2rem;
  108. font-size: 0.5rem;
  109. color: white;
  110. text-align: center;
  111. }
  112. .banner {
  113. width: 15rem;
  114. height: 7.36rem;
  115. }
  116. .banner img {
  117. width: 100%;
  118. height: 100%;
  119. }
  120. .ad {
  121. display: flex;
  122. }
  123. .ad a {
  124. flex: 1;
  125. }
  126. .ad a img {
  127. width: 100%;
  128. }
  129. nav {
  130. display: flex;
  131. width: 100%;
  132. flex-wrap: wrap;
  133. }
  134. nav a {
  135. display: flex;
  136. flex-direction: column;
  137. align-items: center;
  138. flex: 20%;
  139. height: 2.8rem;
  140. }
  141. nav a img {
  142. width: 1.64rem;
  143. height: 1.64rem;
  144. margin: 0.2rem;
  145. }
  146. nav a span {
  147. font-size: 0.5rem;
  148. }