微信小程序中的button默认有边框,要去掉边框也是很简单。
.reward {
width: 150rpx;
height: 60rpx;
background-color: white;
display: flex;
justify-content: space-between;
}
.reward::after {
border: none;
}
上面的代码就可以将reward按钮的边框去掉。
如果想将圆角去掉,在两个样式表中(.reward和.reward::after)都加入如下语句即可。
border-radius: 0rpx;