<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css" media="screen">
.cicle{
margin:0 auto;
<span style="color:#3333FF;">width: 200px;
height: 200px;</span>
border:2px solid orange;
background-color: #09f;
<span style="color:#3333FF;"> border-radius: 50%;</span>
}
.radius{
margin:0 auto;
width: 300px;
height: 200px;
border:2px solid orange;
background-color: #ccc;
<span style="color:#FF6666;"> <span style="color:#3333FF;">border-radius: 15px;</span></span>
}
</style>
</head>
<body>
//圆形
<div class="cicle">
</div>
//圆形边角
<div class="radius">
</div>
</body>
</html>
CSS中
纯CSS实现画圆功能
最新推荐文章于 2025-06-16 15:54:18 发布