<div class="corner"></div>
.corner{
width: 500px;
height: 150px;
background: #58a;
background: linear-gradient(-135deg,transparent 120px,pink 0);
}
![](https://img.haomeiwen.com/i11329965/9a7f937da714bf88.png)
<div class="corner"></div>
.corner{
width: 500px;
height: 150px;
background: #58a;
background: linear-gradient(-135deg,transparent 120px,pink 0);
}
本文标题:长方形切角
本文链接:https://www.haomeiwen.com/subject/kechaltx.html
网友评论