<div class="bg">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<span></span>
</div>
HTML
格式化
支持Emmet,输入 p 后按 Tab键试试吧!
<head> ... </head>
<body>
</body>
body {
position: relative;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
width: 100%;
padding: 0;
margin: 0;
overflow: hidden;
}
.bg {
position: absolute;
display: flex;
top: 0;
left: 0;
width: 100%;
width: calc(100% + 70rem);
height: calc(100% + 70rem);
z-index: 1;
gap: 2.5rem;
background: #26335d;
overflow: hidden;
transform: skew(35deg);
}
.bg > div {
position: relative;
display: flex;
width: 12.5%;
background-image: linear-gradient(20deg, #192138, #192138 36%, #3e2d5c 0, #010824);
border-right: 40px solid #E65C19;
}
.bg span {
position: absolute;
display: flex;
width: 100%;
height: 100%;
background-image: repeating-linear-gradient(45deg, transparent, rgba(193, 194, 244, 0.1), transparent, rgba(193, 194, 244, 0.1), transparent);
background-size: 350% 350%;
z-index: 1;
}
预览
控制台