<div class="hello">
<div class="center"></div>
</div>
.hello{
background-image: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
height: 100%;
}
.center{
background-color: white;
border-radius: 15px;
width:550px;
height: 350px;
margin:0 auto;
transform: translateY(-50%)
position: relative;
top:50%;
}
效果: