小程序 按钮 的设置 。设置 边框无。
修改头像是个按钮。
<view class="item"> <view> <image class="headimgurl" src="{{baseURL+xcxUser.headimgurl}}" /> </view> <view style="display: flex; align-items: center;"> <button open-type="chooseAvatar" bindchooseavatar="onChooseImage" class="text_c2_btn">修改头像</button> <image class="right" src="/assets/images/right2.png" /> </view> </view> .text_c2_btn{ border: 1rpx solid white !important; background-color: transparent !important; font-size: 30rpx; background-color: white; } button::after { border: none !important; /* 移除默认边框 */ }
站长微信:xiaomao0055
站长QQ:14496453