index.wxss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. /* pages/index/index.wxss */
  2. /* 轮播图 */
  3. .swWrapper {
  4. height: 400rpx;
  5. }
  6. .swImg {
  7. width: 100%;
  8. height: 400rpx;
  9. }
  10. /* 热门教员、热门学员标题 */
  11. .hotTitle {
  12. display: flex;
  13. margin-top: 20rpx;
  14. justify-content: center;
  15. align-items: center;
  16. }
  17. /* 热门教员、热门学员标题前后的线条 */
  18. .hotTitle::before {
  19. content: "";
  20. margin-right: 20rpx;
  21. height: 1px;
  22. border: none;
  23. border-top: 1px solid #000;
  24. flex: 1 1 0rpx;
  25. }
  26. .hotTitle::after {
  27. content: "";
  28. margin-left: 20rpx;
  29. height: 1px;
  30. border: none;
  31. border-top: 1px solid #000;
  32. flex: 1 1 0rpx;
  33. }
  34. /* 热门图标 */
  35. .hotIcon {
  36. width: 40rpx;
  37. height: 40rpx;
  38. }
  39. /* 热门教员、热门学员 */
  40. .hotTeacher,
  41. .hotStudent{
  42. position: relative;
  43. display: flex;
  44. padding: 20rpx;
  45. height: 160rpx;
  46. align-items: center;
  47. }
  48. /* 教员、学员头像 */
  49. .teachImg,
  50. .studentImg{
  51. width: 25%;
  52. height: 100%;
  53. }
  54. /* 文字 */
  55. .hotTeacherText,
  56. .hotStudentText{
  57. margin-left: 40rpx;
  58. }
  59. .teachTitle,
  60. .teachDistance,
  61. .studentTitle,
  62. .studentDistance{
  63. height: 60rpx;
  64. line-height: 60rpx;
  65. }
  66. /* 距离字体颜色 */
  67. .teachDistance,
  68. .studentDistance{
  69. color: red;
  70. }
  71. /* 距离的数字样式 */
  72. .teachDistance text,
  73. .studentDistance text{
  74. margin-left: 20rpx;
  75. margin-right: 20rpx;
  76. font-weight: bold;
  77. }
  78. /* 明星级字样 */
  79. .teachGrade,
  80. .studentGrade{
  81. position: absolute;
  82. top: 0;
  83. border: 1rpx solid red;
  84. font-size: 26rpx;
  85. border-top-right-radius: 20rpx;
  86. border-bottom-right-radius: 20rpx;
  87. padding: 2rpx 10rpx 2rpx 4rpx;
  88. background-color: red;
  89. color: white;
  90. z-index: 99;
  91. }
  92. /* 攻略、合作 */
  93. .strategy,
  94. .cooperation{
  95. display: flex;
  96. margin-top: 30rpx;
  97. padding: 20rpx;
  98. /* background-color: greenyellow; */
  99. align-items: center;
  100. }
  101. .strategyTitle,
  102. .cooperationTitle{
  103. font-size: 42rpx;
  104. font-weight: bold;
  105. height: 60rpx;
  106. line-height: 60rpx;
  107. }
  108. /* 更多 */
  109. .strategyMore,
  110. .cooperationMore{
  111. display: flex;
  112. align-items: center;
  113. position: absolute;
  114. right: 30rpx;
  115. border: 1rpx solid gray;
  116. padding: 2rpx 20rpx;
  117. border-radius: 30rpx;
  118. }
  119. /* 箭头 */
  120. .strategyImg,
  121. .cooperationImg{
  122. width: 30rpx;
  123. height: 30rpx;
  124. }
  125. /* 内容区 */
  126. .strategyContent{
  127. height: 300rpx;
  128. margin-left: 20rpx;
  129. }
  130. /* 攻略图片 */
  131. .strategyScroll{
  132. display: flex;
  133. height: 300rpx;
  134. }
  135. .strategyItem,
  136. .scrollItem{
  137. margin-right: 20rpx;
  138. }
  139. .strategyItem image,
  140. .scrollItem image{
  141. height: 300rpx;
  142. border-radius: 20rpx;
  143. }
  144. /* 合作区 */
  145. .cooperationContent{
  146. height: 350rpx;
  147. margin-left: 20rpx;
  148. }
  149. /* 合作图片 */
  150. .cooperationScroll{
  151. display: flex;
  152. height: 300rpx;
  153. }
  154. .scrollItem{
  155. width: 350rpx;
  156. }
  157. .scrollItem image{
  158. width: 350rpx;
  159. }