.wxml:

<view class="add-wrap"hover-class="plus-hover">
  <image src="/assets/plus_new.png"></image>
</view>

.wxss:

add-wrap {
  position:fixed;
  bottom:0;
  display:flex;
  width:100%;
  justify-content:center;
}
.add-wrap image {
  width:64px;
  height:64px;
}

效果:

在这里插入图片描述

Logo

讨论HarmonyOS开发技术,专注于API与组件、DevEco Studio、测试、元服务和应用上架分发等。

更多推荐