Css学习: background linear-gradient 实现镂空倒三角
一个利用渐变实现的倒3角效果
先看效果
- 45度/1.414(60/1.414)
核心
background: linear-gradient(
-45deg,
transparent 42.42641px,
#00adb5 0
) 0 100%/50% 100% no-repeat;
background: linear-gradient(
-45deg,
transparent 42.42641px,
#00adb5 0
) 0 100%/50% 100% no-repeat;