<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
*{
box-sizing: border-box;
}
div.article{
width: 250px;
height: 350px;
background-color: black;
margin: 0 auto;
}
div.top{
width: 250px;
height: 250px;
padding: 10px;
}
div.text{
color: #fff;
text-align: center;
}
div#outer{
height: 100%;
border: 5px solid #cccccc;
border-radius: 50%;
padding: 20px;
}
div#inner{
height: 100%;
border:10px solid #fff;
border-radius: 50%;
}
</style>
</head>
<body>
<div class="article">
<div class="top">
<div id="outer">
<div id="inner"></div>
</div>
</div>
<div class="text">Hi</div>
</div>
</body>
</html>
HTML呼吸灯
最新推荐文章于 2021-08-16 13:49:06 发布