想做分段彩条效果,但是每段连接处是虚的,如何消除呢?有没有办法避免?.top {height: 28px;
background-image:
linear-gradient(
to right,
$red1,
$red1 20%,
$yellow1 20%,
$yellow1 40%,
$blue1 40%,
$blue1 60%,
$purple1 60%,
$purple1 80%,
$brown1 80%,
$brown1 100%,);
}
1 回答
陪伴而非守候
TA贡献1757条经验 获得超8个赞
.liner { height: 66px; background-repeat: no-repeat; background-size: 20% 100%, 40% 100%, 60% 100%, 80% 100%, 100% 100%; background-position: 0 bottom; background-image: linear-gradient(#000,#000), linear-gradient(green, green), linear-gradient(pink, pink), linear-gradient(yellow, yellow), linear-gradient(orange, orange); }
我试了也是须的(估计是chrome bug),所以换了个路子,这样就可以了
- 1 回答
- 0 关注
- 721 浏览
相关问题推荐
添加回答
举报
0/150
提交
取消