我想做成背景色來會變的那種,可是它不動,是哪里有問題??代碼如下
? 0%{
??? background-image:linear-gradient(to top left,red,orange,yellow,green,blue,indigo,violet);
? }
? 15%{
??? background-image:linear-gradient(to top left,orange,yellow,green,blue,indigo,violet,red);
? }
? 30%{
??? background-image:linear-gradient(to top left,yellow,green,blue,indigo,violet,red,orange);
? }
? 45%{
??? background-image:linear-gradient(to top left,green,blue,indigo,violet,red,orange,yellow);
? }
? 60%{
??? background-image:linear-gradient(to top left,blue,indigo,violet,red,orange,yellow,green);
? }
? 75%{
??? background-image:linear-gradient(to top left,indigo,violet,red,orange,yellow,green,blue);
? }
? 100%{
??? background-image:linear-gradient(to top left,violet,red,orange,yellow,green,blue,indigo);
? }
}
div {
??????? background-image:linear-gradient(to top left,red,orange,yellow,green,blue,indigo,violet);
??????? width:300px;
??????? height:200px;
??????? border:1px solid #f60;
??????? animation-name:move;
??????? animation-duration:10s;
??????? animation-timing-function:ease;
??????? animation-delay:1s;
??????? animation-iteration-count:infinite;
??? }
2015-12-10
看看,這個鏈接;
2016-03-10
-webkit-linear-gradient
2015-12-08
用谷歌瀏覽器可以
2015-12-08
用的什么瀏覽器,會不會是兼容問題
2015-12-08
你是想要什么效果?背景圖隨著事件改變?
2015-12-08
你用了之后沒有調用這個動畫