早睡早起,方能养生!
Sleep early rise early, way to keep healthy!

Css让元素背景颜色上下或左右渐变

super
2021-10-12 17:48
views 235

上下渐变:

 

background: linear-gradient(#ff4d89, #ff5e99, #ff76ae);

 

 

左右渐变 ( 增加 to right 参数 )

 

background: linear-gradient(to right, #ff4d89, #ff5e99, #ff76ae);

 



分享
0 条讨论
top