美文网首页
微信小程序浮动按钮

微信小程序浮动按钮

作者: _Gaara_ | 来源:发表于2020-09-17 16:52 被阅读0次
效果图

wxml

   <!--圆形点击框  -->
    <view class="round-click">
       <navigator url='/pages/xxx/xxx' >点我添加</navigator > 
    </view>

wxss

 
.round-click{
  height: 120rpx;
  width: 120rpx;
  background-color: #d92a2a;
  border-radius: 100%;
  position: fixed;
  bottom: 150rpx;
  right: 20rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9;
}
.round-click navigator{
  font-size: 32rpx;
  max-width: 80rpx;
  color: #fff;
  text-align: center;
}

相关文章

网友评论

      本文标题:微信小程序浮动按钮

      本文链接:https://www.haomeiwen.com/subject/hytryktx.html