如何用html和css画出三个同心圆
1个回答
展开全部
做了个小demo,你可以看看,这只是一种思路,你参考一下
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style type="text/css">
.box1{
width:150px;
height:150px;
background-color:#bfa;
padding:25px;
border-radius:100px;
}
.box2{
width:100px;
height:100px;
background-color:#fab;
padding:25px;
border-radius:75px;
}
.box3{
width:100px;
height:100px;
background-color:#abf;
border-radius:50px;
}
</style>
</head>
<body>
<div class="box1">
<div class="box2">
<div class="box3"></div>
</div>
</div>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style type="text/css">
.box1{
width:150px;
height:150px;
background-color:#bfa;
padding:25px;
border-radius:100px;
}
.box2{
width:100px;
height:100px;
background-color:#fab;
padding:25px;
border-radius:75px;
}
.box3{
width:100px;
height:100px;
background-color:#abf;
border-radius:50px;
}
</style>
</head>
<body>
<div class="box1">
<div class="box2">
<div class="box3"></div>
</div>
</div>
</body>
</html>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询