微信小程序按钮去除边框

时间:2018-09-30 00:23:13   收藏:0   阅读:490

wxml:

<button class=‘share‘ id=‘{{item.id}}‘ open-type="share">
<image src=‘/img/fx.png‘ class=‘img_1‘></image>
</button>
 
 
 
wxss:
 
 

/* 按钮 */
.share{
width: 100rpx;
height:50rpx;
background: #fff;
position:relative;
margin-top: -10rpx;
}

/* 按钮去边框 */
button::after{
border: none;
}
 
 
 
评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!