html页面:
<div class="box"></div>
css页面:
.box {
width: 0px;
height: 0px;
border-top: 0px solid rgba(0, 0, 0, 0);
border-right: 50px solid rgba(0, 0, 0, 0);
border-bottom: 50px solid red;
border-left: 50px solid rgba(0, 0, 0, 0);
}
效果: