猫妈狗爸伴宠师小程序前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

118 lines
1.2 KiB

  1. .flex {
  2. display: flex;
  3. align-items: center;
  4. }
  5. .flex-wrap {
  6. flex-wrap: wrap;
  7. }
  8. .flex-between {
  9. justify-content: space-between;
  10. }
  11. .flex-evenly {
  12. justify-content: space-evenly;
  13. }
  14. .flex-around {
  15. justify-content: space-around;
  16. }
  17. .flex-center {
  18. justify-content: center;
  19. }
  20. .flex-column {
  21. flex-direction: column;
  22. }
  23. .mb20 {
  24. margin-bottom: 20rpx;
  25. }
  26. .mb26 {
  27. margin-bottom: 26rpx;
  28. }
  29. .mb28 {
  30. margin-bottom: 28rpx;
  31. }
  32. .mt20 {
  33. margin-top: 20rpx;
  34. }
  35. .mr10 {
  36. margin-right: 10rpx;
  37. }
  38. .mr20 {
  39. margin-right: 20rpx;
  40. }
  41. .pd20 {
  42. padding: 20rpx;
  43. }
  44. .pd40 {
  45. padding: 40rpx;
  46. }
  47. .pd60 {
  48. padding: 60rpx;
  49. }
  50. // 字体
  51. .font22 {
  52. font-size: 22rpx;
  53. }
  54. .font24 {
  55. font-size: 24rpx;
  56. }
  57. .font26 {
  58. font-size: 26rpx;
  59. }
  60. .font28 {
  61. font-size: 28rpx;
  62. }
  63. .font32 {
  64. font-size: 32rpx;
  65. }
  66. .font34 {
  67. font-size: 34rpx;
  68. }
  69. .font36 {
  70. font-size: 36rpx;
  71. }
  72. // 颜色
  73. .col3 {
  74. color: #333333;
  75. }
  76. .col-white {
  77. color: #ffffff;
  78. }
  79. .bgf {
  80. background: #FFFFFF;
  81. }
  82. .radius20 {
  83. border-radius: 20rpx;
  84. }
  85. .ellipsis {
  86. overflow: hidden; /* 确保超出的文本被裁剪 */
  87. white-space: nowrap; /* 确保文本在一行内显示 */
  88. text-overflow: ellipsis; /* 超出的文本显示为省略号 */
  89. }
  90. .line-h200{
  91. line-height: 200%;
  92. }