在开发小程序时会有调起微信客服的功能,这是必须使用button里的一个open-type="contact"的属性,但是有些调起的按钮样式比较复杂,这时候就需要自定义按钮样式,首先我们要清除button自带的样式,下面直接附上代码
button{
margin: 0;
padding: 0;
outline: none;
border-radius: 0;
background-color: transparent;
line-height: inherit;
}
button::after{
border: none;
}