/*方向:
to top:0deg
to right:90deg
to bottom:180deg --默認值
to left:270deg*//*background: linear-gradient(to right,red,blue);*/background:linear-gradient(to right,red 0%,red 50%,blue 80%,blue 100%);
形狀shape:circle:產生正方形的漸變色 ellipse:適配當前的形狀,如果是正方形的容器,兩者效果一樣.如果寬高不一樣,默認效果切換到ellipse
at position:座標,默認在正中心。可以賦值座標(參照元素的左上角),也可以賦值關鍵字(left center right top bottom)大小size: closest-side:最近邊; farthest-side:最遠邊; closest-corner:最近角; farthest-corner:最遠角。默認是最遠的角farthest-corner*/
/*background: radial-gradient(circle,red,blue);*//*background: radial-gradient(circle farthest-side at 50px 50px,red,blue);*/background:radial-gradient(at 10px 10px,red,blue);
/*添加過渡效果:過渡效果執行完畢之後,默認會還原到原始狀態*//*1.transition-property:添加過渡效果的樣式屬性名稱*/transition-property: left;/*2.transition-duration:過渡效果的耗時 以秒做爲單位*/transition-duration: 2s;/*3.transition-timing-function:設置時間函數--控制運動的速度*/transition-timing-function: linear;/*4.transition-delay:過渡效果的延遲*/transition-delay: 2s;/*簡寫 transition:屬性名稱 過渡時間 時間函數 延遲*/transition: left 2s linear 0s;/*爲多個樣式同時添加過渡效果*/transition: left 2s linear 0s,background-color 5s linear 0s;