微信小程序——悬浮按钮
关键: position: fixed;
wxml:
<navigator url="/pages/issue/index">
<image class=\'img\' src=\'/assets/images/Home/add.png\' bindtap=\'add\'></image>
</navigator>
wxss:
.img{
float: right;
position: fixed;
bottom: 120rpx;
right: 20rpx;
width: 80rpx;
height: 80rpx;
}
js:
add(e){
console.log(e);
},
- 上一篇 »php 微信小程序支付
- 下一篇 »微信小程序获取用户信息