background: linear-gradient(to left, #6FB6C2, #6FC278);
to left:从右到左渐变。
背景效果:
css背景色的线性渐变
原文:https://www.cnblogs.com/superyucong/p/12219597.html