由于微信小程序的接口限制,获取用户信息,转发分享只能通过button组件的open-type来实现,而原生的button组件样式非常多(奇丑无比),本文将教大家在使用button组件时保持自定义样式:
button {
font: inherit !important;
margin: 0 !important;
padding: 0 !important;
background: none !important;
line-height: unset !important;
text-align: inherit !important;
width: unset !important;
color: inherit !important;
position: unset !important;
box-sizing: inherit !important;
border: unset !important;
min-height: unset !important;
}
转载请注明出处,谢谢!
button::after {
display: none;
}