2011-10-08 87 views

回答

9
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#4096ee), color-stop(100%,#4096ee)); 
// Chrome, Safari4+ 

background: -webkit-linear-gradient(top, #1e5799 0%,#2989d8 50%,#207cca 51%,#7db9e8 100%); /* Chrome10+,Safari5.1+ */ 

http://www.colorzilla.com/gradient-editor/

尼斯的资源,使梯度在大多数浏览器。

+0

这不会+根据您列出的网站在chrome10工作。 – brenjt

+0

谢谢!在评论中忽略了这一部分。添加了Chrome10 +等价物。 – methodin

+0

谢谢,现在它在铬中工作正常。 –

0

我相信这是-webkit-linear-gradient

2
-webkit-linear-gradient(center top , #59a1d8, #27247D) repeat scroll 0 0 #0f78c7; 
+1

只是要清楚,这应该以'背景:' –

+0

开始是的,我只是跳过给定 – comu