/* template/toTop/toTop.wxss */ .to-top-btn{ position: fixed; right: 10rpx; bottom: 100rpx; display: flex; align-items: center; justify-content: center; width: 100rpx; height: 100rpx; line-height: 100rpx; /* border:1px solid #e4e4e4; */ border-radius: 50%; background: rgba(0,0,0,0.4); z-index: 1003; } .to-top-btn image{ width: 46rpx; height: 46rpx; }