div绘制三角形
2022-12-08 本文已影响0人
LemonTree7
.triangle{
width: 0;
height:0;
border-top:30px solid transparent;
border-right: 30px solid red;
border-bottom: 30px solid transparent;
border-left: 30px solid transparent;
}
.triangle{
width: 0;
height:0;
border-top:30px solid transparent;
border-right: 30px solid red;
border-bottom: 30px solid transparent;
border-left: 30px solid transparent;
}