CSS线性渐变

---【渐变的使用】: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} 

posted @ 2020-03-14 19:32  昵称太难取了  阅读(122)  评论(0编辑  收藏  举报