微信小程序按钮悬浮固定在底部

微信小程序按钮悬浮固定在底部

其实这是一个很简单的小程序的样式,也就随手记录下来了。

 <button class='Scancode' bindtap='getScancode'>绑定车辆</button>

wxss:

.Scancode {
  
  font-size: 39rpx;
  background: #fff;
  position: fixed;
  bottom: 0;
  display: flex;
  width: 100%;
  justify-content: center;
}

原文作者:祈澈姑娘;技术博客:https://www.jianshu.com/u/05f416aefbe1
90后前端妹子,爱编程,爱运营,爱折腾。 坚持总结工作中遇到的技术问题,坚持记录工作中所所思所见,欢迎大家一起探讨交流。

猜你喜欢

转载自blog.csdn.net/qq_38822390/article/details/84976246