在CSS背景中使用web工具包渐变和图像

在CSS背景中使用web工具包渐变和图像,css,webkit,Css,Webkit,我试图在这个类的顶部放置一个图像,并使用WebKitGradiant添加当前背景 background: -webkit-gradient(linear, left bottom, left top, color-stop(0.03, #3A79C1), color-stop(0.99, #5F9EE6), color-stop(1, #75ABEA)) url(images/bg.gif) no-repeat center right; 虽然它只是添加背景而不是图像,但代码正确吗?正确的

我试图在这个类的顶部放置一个图像,并使用WebKitGradiant添加当前背景

background: -webkit-gradient(linear, left bottom, left top, 
color-stop(0.03, #3A79C1), color-stop(0.99, #5F9EE6), 
color-stop(1, #75ABEA)) url(images/bg.gif) no-repeat center right;

虽然它只是添加背景而不是图像,但代码正确吗?

正确的想法,但是您缺少了一个逗号,并且希望图像显示在渐变顶部。。不在下面!因此,重新安排订单。看看这个

background: url('images/bg.gif') no-repeat center right,-webkit-gradient(linear, left bottom, left top, 
color-stop(0.03, #3A79C1), color-stop(0.99, #5F9EE6), 
color-stop(1, #75ABEA)) ;