2012-08-14 27 views
0
background: -moz-linear-gradient(center bottom , #303030, #3A3A3A) repeat scroll 0 0 transparent; 

我試過background:-webkit-linear-gradient (center bottom , #303030, #3A3A3A) repeat scroll 0 0 transparent; 鉻,但它沒有奏效。同樣的IE瀏覽器,我嘗試ms-linear-gradient具有相同的值,它不工作。如何製作此線性梯度跨瀏覽器?

+1

真的嗎?它花了我兩秒鐘的時間來谷歌...即使是最迷人的關鍵字工作的前三名:http://bit.ly/NyGuFL – TheZ 2012-08-14 15:41:16

+1

也許他使用了Bing。 – snuffn 2012-08-14 15:59:50

+0

好吧寒意..我犯了一個錯誤。我搜索了「線性漸變」.. 我不知道colorzilla有一個選項可以導入我們自己的CSS。道歉。 – TheKraven 2012-08-14 16:04:09

回答

0

要知道,linear-gradient語法最近發生了變化:

  • 關鍵字起點(centerbottom)已經變成了終點,用 「到」 關鍵字(to centerto botom)前綴;
  • 角度現在從圓頂部的0開始,順時針旋轉。

當您省略前綴時,MSIE10將支持新語法。