想要去除button的边框,如下未去除边框时,非常影响观感。
解决方法
使用伪元素::after,简单但是易忘,正常情况下,我直接是给button上加上一个类名直接设置border:none,但是这样是无效的,应该如下
html
<button class="phone_btn" @click="handleLogin">微信手机号一键绑定</button>
js
.phone_btn::after{
border: none;
}
想要去除button的边框,如下未去除边框时,非常影响观感。
使用伪元素::after,简单但是易忘,正常情况下,我直接是给button上加上一个类名直接设置border:none,但是这样是无效的,应该如下
html
<button class="phone_btn" @click="handleLogin">微信手机号一键绑定</button>
js
.phone_btn::after{
border: none;
}