CSS 画圆的方法有两种:使用 border-radius 属性:
CSS 画圆的方法有两种:
1. 使用 border-radius 属性:
css
div {
width: 100px;
height: 100px;
border-radius: 50%;
background-color: #ccc;
}
2. 使用 clip-path 属性:
css
div {
width: 100px;
height: 100px;
clip-path: circle(50%);
background-color: #ccc;
}
本站系公益性非盈利分享网址,本文来自用户投稿,不代表边看边学立场,如若转载,请注明出处
评论列表(33条)