CSS线性渐变
2021-04-06 14:26
标签:颜色 ack -- line die near 方向 image 开始 ---【渐变的使用】:linear-gradient() =默认从上往下渐变 div{ background-image:linear-gradient(red,yellow,green} =控制向右方向 div{ background-image:linear-gradient(to right, red,yellow,green} // =可以使用度数来控制方向 div{ background-image:linear-gradient( 45deg, red,yellow,green} =红颜色有百分之10的纯色,之后开始渐变 linear-gradient( 45deg, red 10%,yellow,green} CSS线性渐变 标签:颜色 ack -- line die near 方向 image 开始 原文地址:https://www.cnblogs.com/zzhqdkf/p/12493737.html