如何使用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;
}


以上是如何使用CSS删除默认按钮边框的全部内容。
THE END
分享
二维码
< <上一篇
下一篇>>