1、先给button加一个plain属性
<button wx:elif="{{isLogin}}" type="default" plain class="userinfo-avatar" open-type="chooseAvatar"
bind:chooseavatar="onChooseAvatar"> <image src="{{avatarUrl?avatarUrl:'/icons/未登录头像.png'}}" mode="scaleToFill" class="userinfo-avatar-img"></image> </button>
2、找到按钮的样式设置border的值为0
.index_main .login_before .login_img .userinfo-avatar{ border: 0rpx; }
标签:avatar,微信,边框,userinfo,按钮,border,plain From: https://www.cnblogs.com/zwh0910/p/17599953.html