实现元素圆角:
![](https://img-blog.csdnimg.cn/img_convert/da66278915642bb3d8b39d5fbcc42db8.png#pic_center)
1. border-radius
.demo {
width: 100px;
height: 100px;
background-color: blue;
border-radius: 20px;
}
2. clip-path
.demo {
width: 100px;
height: 100px;
background-color: blue;
clip-path: inset(0 round 20px);
}
📘📘欢迎在我的博客上访问:
https://lzxjack.top/