解决方案
设置after,具体案例如下
index.wxml
<button class='mpbutton'>按钮</button>
index.wxss
.mpbutton{
background: #fff;
color:rgba(111,133,255,1);
box-sizing: border-box; //设置内边框
font-size: 30rpx;
}
.mpbutton:after{
border:0; //设置取消默认边框
border:2rpx solid rgba(111,133,255,1); //设置2rpx的内边框
}
end