用纯CSS创建一个三角形的原理是什么?

2020-07-09 09:51发布

2条回答
悠溯
2020-07-09 18:30

实现一个向下的小三角

.box{

    width: 0;

    height: 0;


    font-size: 0;

    line-height: 0;


    border-top: 100px solid red;

    border-left: 100px solid transparent;

    border-right: 100px solid transparent;

}


一周热门 更多>