本教程操作环境:windows7系统、CSS3&&HTML5版、Dell G3电脑。
border-radius 属性是一个简写属性,用于设置四个 border-*-radius 属性。
提示:该属性允许您为元素添加圆角边框!
注释:按此顺序设置每个 radii 的四个值。如果省略 bottom-left,则与 top-right 相同。如果省略 bottom-right,则与 top-left 相同。如果省略 top-right,则与 top-left 相同。
设置前:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>document</title>
<style>
div{
width: 100px;
height: 100px;
border: 1px solid rgb255, 113, 113);
}
</style>
</head>
<body>
<div></div>
</body>
</html>
效果:
设置后:
border-radius: 50%;
效果:
推荐学习:css视频教程
以上就是css怎么画圆的详细内容,更多请关注风君子博客其它相关文章!



![1618906428107376.png `P~@WV5~JF%)F90AB`]B8$B.png](https://img.95890.com/2023/02/20230211220242526-1.png)