<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style type="text/css">
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root{
--clr:#4fb6ff;
}
body{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: var(--clr);
}
.box{
position: absolute;
width: 400px;
height: 320px;
padding: 30px;
background-color: #fff;
background: #fff radial-gradient(
#4fb6ff 0px,
#4fb6ff 7px,
transparent 7px ) ;
background-size: 20px 20px;
background-position:-10px;
}
.box::before{
content: '';
position: absolute;
inset:20px;
background: url(./img/fj7.jpg);
background-size: cover;
box-shadow: 0 0 0 10px #FFFFFF;
}
.content{
width: 450px;
height: 450px;
background-color: #4fb6ff;
display: flex;
justify-content: center;
align-items: center;
margin: 100px auto;
box-shadow: 0 0 5px 1px #fff;
border-radius: 10px;
}
</style>
</head>
<body>
<div class="content">
<div class="box">
</div>
</div>
</body>
</html>
效果图: