如何使用CSS删除默认按钮边框
我有一个像这样的圆形按钮。
.rock{
height:100px;
width:100px;
border-radius:100px;
border-color:yellow;
border-width:8px;
}
<button type='button'>Button</button>
<button type='button'>Button</button>
回答
将边框样式设置为solid. 我认为它是outset默认的,它给你一个更斜的处理。
.rock {
height: 100px;
width: 100px;
border-radius: 100px;
border-color: yellow;
border-width: 8px;
border-style: solid;
}