正方形边框为0模拟三角
2020-11-30 本文已影响0人
TMWORELiJamesRa
<!-- 正方形边框为0模拟三角 -->
<!-- .box {
width: 0;
height: 0;
border-width: 100px;
border-style: solid;
border-top-color: transparent;
border-right-color: transparent;
border-bottom-color: transparent;
border-left-color: orange;
优化
width: 0;
height: 0;
border-width: 100px;
border-style: solid;
border-color: transparent;
border-left-color: orange;
} -->