方法就是把圆角值设置为按钮高度的一半
.button{
width: 10rem;
height: 3rem;
font-size: 18px;
color: #fff;
background: linear-gradient(to bottom,#71b9ff 20%,#2291fe 70%);
border-radius: 1.5rem;
}
效果如下:
方法就是把圆角值设置为按钮高度的一半
.button{
width: 10rem;
height: 3rem;
font-size: 18px;
color: #fff;
background: linear-gradient(to bottom,#71b9ff 20%,#2291fe 70%);
border-radius: 1.5rem;
}
效果如下: