CSS三角形的实现

PHOTO EMBED

Thu Apr 29 2021 08:00:54 GMT+0000 (Coordinated Universal Time)

Saved by @ycljcfer

    width: 40px;
    height: 40px;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    background: linear-gradient(#fc0, #f0c);
content_copyCOPY

https://github.com/chokcoco/iCSS/issues/113