版权声明:转载请评论留言 https://blog.csdn.net/solocao/article/details/89739668
在小程序给官方button
增加自定义样式的时候,需要注意隐藏button
的border
。
我用的less
,加上一行代码就可以解决。
&:after {
border: none;
}
例如下图自定义样式的代码是
.login-btn {
background: #ecb810;
color: #2e2f2e;
display: flex;
align-items: center;
justify-content: center;
padding: 10px;
border-radius: 25px;
font-weight: bold;
height: 45px;
&:after {
border: none;
}
}