要写一个按钮
button{
width: 150rpx;
height: 50rpx;
line-height: 50rpx;
font-size:26rpx;
color: #28A0F8;
border: 2rpx solid #28A0F8;
border-radius:8rpx;
}
仔细看 自己写了边框代码之后,原本的边框线还在,因为小程序的边框线写在了button::after 里面所以 要去除的方法是:
button::after{
border: none;
}
这样就ok了