给body标签或者所需的容器设置以下代码
width: 100%;
height: 100%;
background: linear-gradient(125deg,#3498db,#fab1a0,#00cec9,#fd79a8,#c7ecee);
background-size: 400%;
animation: bganimation 15s infinite;
在这里看到的一个css方法滚动渐变背景色
给body标签或者所需的容器设置以下代码
width: 100%;
height: 100%;
background: linear-gradient(125deg,#3498db,#fab1a0,#00cec9,#fd79a8,#c7ecee);
background-size: 400%;
animation: bganimation 15s infinite;
在这里看到的一个css方法滚动渐变背景色