使用CSS linear-gradient() 函数: background: linear-gradient(to left, #6FB6C2, #6FC278); to left:从右到左渐变。 背景效果: 来源:https://www.cnblogs.com/superyucong/p/12219597.html 标签 背景色 线性 css