- 圆
.demo {
width: 100px;
height: 100px;
background-color: red;
border-radius: 100px;
}
- 半圆
.demo {
width: 100px;
height: 50px;
background-color: red;
border-radius: 100px 100px 0 0;
}
- 四分之一圆
.demo {
width: 100px;
height: 100px;
background-color: red;
border-radius: 100px 0 0 0;
}