<html>
<head>
<title>我的第一个 HTML 页面</title>
<style type="text/css">
.stripe-style{
display: grid;
position: absolute;
width: 350px;
height: 80px;
left: 3%;
transform: skewX(350deg);
transform-origin: 0;
}
.span1 {
padding-top: 19%;
text-align: right;
background-color: red;
box-shadow: 0px 0px 10px rgb(159 160 165 / 50%);
color: #fff;
font-size: 22px;
grid-column: 1 / span 1;
grid-row: 1;
}
.span2 {
padding-top: 19%;
background-color: blue;
color: #fff;
font-size: 22px;
grid-column: 2 / span 1;
grid-row: 1;
}
</style>
</head>
<body>
<div class="stripe-style">
<span class="span1">V</span>
<span class="span2">S</span>
</div>
</body>
</html>
效果如下: