關於css如何實現背景顏色漸變的個人小結

1、線性漸變,也可以設置偏移量   background: linear-gradient(方向,color1 ,color2);  看看效果:                 linear-gradient第一個參數指定 表示漸變的方向,從哪向哪漸變 to bottom 從上至下;to bottom right 從左上至右下;to right 從左至右;to up right 從左下至右上; t
相關文章
相關標籤/搜索