當然微信小程序button設置背景圖的方法有很多,在這裏我只介紹一種簡單方便的方法。
wxml文件
<view>
<button class='share-button' open-type="share">
<image class="right" src="../../images/share_right.png"></image>
</button>
</view>
wxss文件
.share-button{
/*透明不顯示*/
background: rgba(0,0,0,0);
}
將 button 設置爲透明不顯示就可以了,是不是很方便呢。
順便再推薦一個 靠譜的 搶票軟件(專人搶票哦)
心到搶票 - 加微信 xdticket 基本可以保證100%搶票成功