dk-tip.wxss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. .tipDownRight {
  2. min-height: 60rpx;
  3. color: white ;
  4. display: flex;
  5. align-items: center;
  6. justify-content: flex-start;
  7. padding: 8rpx 16rpx;
  8. background: rgba(0, 0, 0, 0.7);
  9. position: absolute;
  10. /* 使用百分比或负值rpx,确保它完全在图标上方 */
  11. transform: translateY(70%);
  12. /* 另一个选项,使用transform以确保更精确的控制 */
  13. left: 0;
  14. /* 如果需要,可以调整或移除 */
  15. border-radius: 12rpx;
  16. width: max-content;
  17. z-index: 99;
  18. }
  19. .tipDownRight:after {
  20. content: "\00a0";
  21. width: 0;
  22. height: 0;
  23. display: block;
  24. border-style: solid;
  25. border-width: 8rpx;
  26. border-color: transparent transparent rgba(0, 0, 0, 0.7) transparent;
  27. position: absolute;
  28. z-index: 1;
  29. top: -14rpx;
  30. left: 10rpx;
  31. }
  32. .tipDownLeft {
  33. min-height: 60rpx;
  34. color: white;
  35. display: flex;
  36. align-items: center;
  37. justify-content: flex-start;
  38. padding: 8rpx 16rpx;
  39. background: rgba(0, 0, 0, 0.7);
  40. position: absolute;
  41. /* 使用百分比或负值rpx,确保它完全在图标上方 */
  42. transform: translateY(70%);
  43. /* 另一个选项,使用transform以确保更精确的控制 */
  44. right: 0;
  45. /* 如果需要,可以调整或移除 */
  46. border-radius: 12rpx;
  47. width: max-content;
  48. z-index: 99;
  49. }
  50. .tipDownLeft:after {
  51. content: "\00a0";
  52. width: 0;
  53. height: 0;
  54. display: block;
  55. border-style: solid;
  56. border-width: 8rpx;
  57. border-color: transparent transparent rgba(0, 0, 0, 0.7) transparent;
  58. position: absolute;
  59. z-index: 1;
  60. top: -14rpx;
  61. right: 10rpx;
  62. }
  63. .tipContentStyle{
  64. color:var(--color--);
  65. font-size:var(--fontSize--);
  66. }
  67. .tipUpRight {
  68. min-height: 60rpx;
  69. color: white;
  70. display: flex;
  71. align-items: center;
  72. justify-content: flex-start;
  73. padding: 8rpx 16rpx;
  74. background: rgba(0, 0, 0, 0.7);
  75. position: absolute;
  76. top: -50%;
  77. /* 使用百分比或负值rpx,确保它完全在图标上方 */
  78. transform: translateY(-100%);
  79. /* 另一个选项,使用transform以确保更精确的控制 */
  80. left: 0;
  81. /* 如果需要,可以调整或移除 */
  82. border-radius: 12rpx;
  83. width: max-content;
  84. z-index: 99;
  85. }
  86. .tipUpRight:after {
  87. content: "\00a0";
  88. width: 0;
  89. height: 0;
  90. display: block;
  91. border-style: solid;
  92. border-width: 8rpx;
  93. border-color: rgba(0, 0, 0, 0.7) transparent transparent transparent;
  94. position: absolute;
  95. z-index: 1;
  96. bottom: -14rpx;
  97. left: 10rpx;
  98. }
  99. .tipUpLeft {
  100. min-height: 60rpx;
  101. color: white;
  102. display: flex;
  103. align-items: center;
  104. justify-content: flex-start;
  105. padding: 8rpx 16rpx;
  106. background: rgba(0, 0, 0, 0.7);
  107. position: absolute;
  108. top: -50%;
  109. /* 使用百分比或负值rpx,确保它完全在图标上方 */
  110. transform: translateY(-100%);
  111. /* 另一个选项,使用transform以确保更精确的控制 */
  112. right: 0;
  113. /* 如果需要,可以调整或移除 */
  114. border-radius: 12rpx;
  115. width: max-content;
  116. z-index: 99;
  117. }
  118. .tipUpLeft:after {
  119. content: "\00a0";
  120. width: 0;
  121. height: 0;
  122. display: block;
  123. border-style: solid;
  124. border-width: 8rpx;
  125. border-color: rgba(0, 0, 0, 0.7) transparent transparent transparent;
  126. position: absolute;
  127. z-index: 1;
  128. bottom: -14rpx;
  129. right: 10rpx;
  130. }
  131. .container {
  132. display: flex;
  133. align-items: center;
  134. justify-content: center;
  135. }
  136. .tipLayout {
  137. position: relative;
  138. display: flex;
  139. flex-direction: column;
  140. align-items: center;
  141. justify-content: center;
  142. height: 100%;
  143. /* 或其他适当的高度 */
  144. }