- 在开发小程序功能的时候,通常都会使用到button 组件,但是button带着默认样式,影响样式的开发,所以得需要先将默认的样式给去掉
button{
margin:0;
padding:0;
border-radius:0;
border:none;
background-color:transparent;
}
button::after{
border: none;
}
以上就是button的样式去除
可以直接放在app.wxss文件中,这样全局引用,就不用每个页面都复制粘贴了!