问题描述
微信小程序开发过程中,经常会存在需要自定义一些组件的情况,接下来我们介绍这次开发小程序我遇到的自定义button和checkbox。
自定义button
除了简单的用view或者其他标签模拟,加上背景图片完全放飞自由,还有特定需要button按钮,比如需要用微信自带的分享转发功能,有几点需要关注:
<button class='btn btn-default' hover-class="none" open-type='share'>分享看群关系</button>
1.设置open-type='share'
2.重置样式 button{ background-color: transparent;}
3.书写按钮自定义样式
.btn-default{