AI智能
改变未来

css实现倒三角

[code]width: 40px;height: 40px;border: 40px;border-style: solid;border-color: red green blue brown;

三角形:

[code]width: 0;height: 0;border: 50px;border-style: solid;border-color: red green blue brown;

倒三角就是把其他边取消掉

[code]width: 0;height: 0;border: 50px;border-style: solid;border-color: red transparent transparent transparent;

赞(0) 打赏
未经允许不得转载:爱站程序员基地 » css实现倒三角