使用uview中u-button按钮组件时,使用镂空样式按钮,发现按钮自带一个细边框,很影响观感
如图
灰色细线去除方法:
.uni-button:after{
border: none;
}
其中uni-button为自设的class名称
另:
如果要去除绿色部分的边框,行内添加 :custom-style="{border:'none'}" :hair-line='false'
<u-button
type="primary"
color="#5bcfa7"
custom-style="{border:'none'}"
:hair-line='false' :plain="true"
class="scanBtn">
扫码输入编号<image src="../../../static/icon/scan.png">
</image>
</u-button>
如图: