收藏
回答

map组件嵌套cover-view渲染marker的气泡,文字尾部为什么会有遮挡?

<cover-view slot="callout">
    <cover-view wx:for="{{markers}}" wx:key="mid" class="customCallout" marker-id="{{ item.id }}">{{ item.name }}</cover-view>
</cover-view>

CSS:
.customCallout {
    margin35rpx 0 5rpx;
    width: fit-content;
   box-sizing: border-box;
  padding2rpx 8rpx 5rpx;
  background: rgba(2552552550.85);
  border-radius6rpx;
  font-family: YouSheShaYuFeiTeJianKangTi;
  font-size12rpx;
  color#434343;
  line-height18rpx;
  text-align: center;
  font-style: normal;
}



回答关注问题邀请回答
收藏

3 个回答

  • 璀璨
    璀璨
    2025-11-06

    尾部加个透明文字

    2025-11-06
    有用
    回复
  • 哈吉
    哈吉
    2025-06-19

    求问~ 解决了吗?

    2025-06-19
    有用
    回复 1
    • Ah
      Ah
      2025-12-22
      看楼上方法,我是后面加了两个00 改成透明的
      2025-12-22
      回复
  • 智能回答 智能回答 本次回答由AI生成
    2025-05-22
    有用
登录 后发表内容