我喜欢background: -moz-linear-gradient(center top , #59a1d8, #27247D) repeat scroll 0 0 #0f78c7;我的按钮,这对我来说对mozilla来说很好.但在Chrome浏览器中,它无法正常工作,相当于此.
谢谢,nehatha
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+ */
Run Code Online (Sandbox Code Playgroud)
http://www.colorzilla.com/gradient-editor/
漂亮的资源使渐变在大多数浏览器中都能运行.