[英]how can i create a button like the ones in the picture
The button in the picture is a default button with curved corner.图片中的按钮是一个带有弧形角的默认按钮。 I create a default button and tried to use border-radius to change radius of the corners, but it also changed the button appearance like background colour.
我创建了一个默认按钮并尝试使用border-radius来更改角落的半径,但它也改变了按钮外观,如背景颜色。 enter image description here
在此处输入图像描述
You can try something like below Css:您可以尝试如下 Css :
button.myButton{
padding: 8px 17px;
background: transparent;
border: 1px solid #000;
border-radius: 5px;
background-color: #808080;
color: black;
font-size: 19px;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.