.tri{
border-top: transparent 0px solid;
border-bottom: red 50px solid;
border-right: transparent 50px solid;
border-left: transparent 50px solid;
width:0;
height:0;
}
<div class="tri"></div>
![](https://img-blog.csdnimg.cn/20190822171342451.png)
.tri{
position: relative;
border-top: transparent 0px solid;
border-bottom: red 50px solid;
border-right: transparent 50px solid;
border-left: transparent 50px solid;
width: 0;
height: 0;
}
.tri:after{
position: absolute;
content: "";
border-top: transparent 0px solid;
border-bottom: white 40px solid;
border-right: transparent 40px s