//去掉边框线
button::after {
border: none;
}
//重新定义默认值,可以自己定义,也可以自己写一个特定的类覆盖掉默认样式
button { background-color: #fff;border-radius:0; line-height:inherit;}
本文介绍了一种去除HTML按钮元素默认边框的方法,并提供了自定义按钮样式的CSS代码示例,包括背景颜色、边框圆角和行高属性的调整。
//去掉边框线
button::after {
border: none;
}
//重新定义默认值,可以自己定义,也可以自己写一个特定的类覆盖掉默认样式
button { background-color: #fff;border-radius:0; line-height:inherit;}
802
1139

被折叠的 条评论
为什么被折叠?