效果
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/0379d8b4920a309d31c0d6de93a11cc9.gif#pic_center)
源码
index.html
<!DOCTYPE html>
<html>
<head>
<title>Quick CSS Border Trick</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="box">
<span></span>
<h2>01</h2>
</div>
</body>
</html>
css
@import url('https://fonts.googleapis.com/css?family=Poppins:100,200,300,400,500,600,700,800,900');
*
{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
body
{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #0c1022;
}
.box
{
positi