myCollectTeacher.wxss 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. /* pages/myCollectTeacher/myCollectTeacher.wxss */
  2. /* 设置页面背景 */
  3. .teachWrapper{
  4. background-color: #E2F0D9;
  5. height: 100%;
  6. padding: 20rpx;
  7. }
  8. /* 设置单个教员背景 */
  9. .teachDetail{
  10. display: flex;
  11. position: relative;
  12. /* border: 1rpx solid gray; */
  13. padding: 10rpx 0;
  14. border-radius: 20rpx;
  15. background-color: #FFF2CC;
  16. margin-bottom: 20rpx;
  17. font-weight: bold;
  18. font-size: 28rpx;
  19. }
  20. .teachIntroTop{
  21. display: flex;
  22. }
  23. /* 教员头像 */
  24. .teachImg{
  25. width: 22%;
  26. margin: 10rpx;
  27. border-radius: 20rpx;
  28. }
  29. .teachIntro{
  30. margin-left: 10rpx;
  31. }
  32. /* 科目 */
  33. .course{
  34. display: flex;
  35. }
  36. .teachCourse{
  37. margin-left: 10rpx;
  38. width: 160rpx;
  39. display: block;
  40. white-space: nowrap;
  41. overflow: hidden;
  42. text-overflow: ellipsis;
  43. }
  44. /* 右侧部分定位 */
  45. .teachIntroRight{
  46. position: absolute;
  47. /* right: 30rpx; */
  48. left: 65%;
  49. }
  50. /* 教员学历和教龄 */
  51. .teachEduAndAge{
  52. display: flex;
  53. }
  54. /* 教龄图标 */
  55. .teachAgeIcon {
  56. margin-left: 20rpx;
  57. padding: 2rpx;
  58. border: 1rpx solid;
  59. border-radius: 10rpx;
  60. font-size: 26rpx;
  61. color: white;
  62. background-color: #FF6666;
  63. }
  64. /* 教龄 */
  65. .teachAge{
  66. margin-left: 10rpx;
  67. font-weight: bold;
  68. color: red;
  69. }
  70. /* 成功经验 */
  71. .experience{
  72. display: flex;
  73. }
  74. .teachExperience{
  75. width: 300rpx;
  76. margin-left: 10rpx;
  77. display: block;
  78. white-space: nowrap;
  79. overflow: hidden;
  80. text-overflow: ellipsis;
  81. }