总结:朝向哪个方向,对边为三角形添加需要颜色,其他三边设为透明(简单)。
向下:
.arrow-down {
width: 0px;
height: 0px;
border-top: 10px solid red;
border-right: 10px solid transparent;
border-bottom: 10px solid transparent;
border-left: 10px solid transparent;
}
实现如图底边长20px,高10px等边三角形