console
<div class="mian">
<div class="info">
<div class="top-content">内容1</div>
<div class="dashed--line"></div>
<div class="bottom-content">内容2</div>
</div>
<div class="info bigger" ></div>
</div>
<div class="element">
</div>
body{
background: rgb(245, 225, 161,0.5);
}
.mian{
position: relative
}
.info{
background: #fff;
height: 400px;
width: 250px;
margin:16px;
border-radius: 8px;
mask: radial-gradient(13px at 0% 65% , transparent 98%, #fff) intersect,
radial-gradient(13px at 100% 65% , transparent 98%, #fff)
;
z-index: 1;
position: absolute;
}
.bigger{
width: 254px;
height: 404px;
background: rgb(248, 196, 147);
z-index: 0;
left: -2px;
top: -2px;
}
.top-content{
height:calc(65% - 34px);
padding:16px;
}
.bottom-content{
padding:16px;
}
.dashed--line {
--dash: 4px;
--gap: 10px;
--size: calc(var(--dash) + var(--gap));
--b: 5px;
--bg: #d4d4d4;
background: linear-gradient(to right, var(--bg) 0, var(--bg) var(--dash),#0000 0) left center / var(--size) var(--b) repeat-x;
height: var(--b);
}
.element {
}