文档
- https://developers.weixin.qq.com/miniprogram/dev/component/button.html
按钮关键属性
open-type="contact"
功能按钮
<button class="button__open-type"open-type="contact">
</button>
css样式
父元素需要设置为相对定位
.button__open-type {position: absolute;width: 100%;height: 100%;top: 0;left: 0;background-color: transparent;padding: 0;margin: 0;
}.button__open-type::after {border: none;
}