正折角和斜折角效果
![在这里插入图片描述](https://img-blog.csdnimg.cn/98339cf63216475888fc32dc762aee16.png)
<style>
.box {
width: 60px;
height: 40px;
background: #58a;
background: linear-gradient(to left bottom, transparent 50%, rgba(0, 0, 0, .4)0) no-repeat 100% 0 / .5em .5em,
linear-gradient(-135deg, transparent .32em, #58a 0);
}
.box1 {
margin-top: 10px;
width: 60px;
height: 40px;
background: #58a;
background: linear-gradient(to left bottom, transparent 50%, rgba(0, 0, 0, .4)0) no-repeat 100% 0 / .64em .3695em,
linear-gradient(-150deg, transparent .32em, #58a 0);
}
</style>
<main>
<div class="box"> </div>
<div class="box1"></div>
</main>