参考教程:https://www.w3cplus.com/css3/do-you-really-understand-css-linear-gradients.html
background-img: linear-gradient(to top,#222,#333);
第一个参数:指定渐变方向,可以用“角度”的关键词或“英文”来表示;
第二个和第三个参数,表示颜色的起始点和结束点,可以有多个颜色值。
参考教程:https://www.w3cplus.com/css3/do-you-really-understand-css-linear-gradients.html
background-img: linear-gradient(to top,#222,#333);
第一个参数:指定渐变方向,可以用“角度”的关键词或“英文”来表示;
第二个和第三个参数,表示颜色的起始点和结束点,可以有多个颜色值。