CSS渐变和渐变上方的背景图像

CSS渐变和渐变上方的背景图像,css,background-image,gradient,Css,Background Image,Gradient,我的问题是:如何使我的2个背景图像显示在CSS渐变的左右两侧。我正在使用JA Elastica模板(修改默认CSS)开发Joomla网站 在我当前的CSS中,如果我把“background:url('images')”放在渐变上面,那么它会显示图像,但不会显示渐变;如果我把它放在渐变下面,它会显示渐变,但不会显示图像 我目前使用的代码如下: body#bd { background-image: linear-gradient(bottom, rgb(142,210,46) 2%, rgb(17

我的问题是:如何使我的2个背景图像显示在CSS渐变的左右两侧。我正在使用JA Elastica模板(修改默认CSS)开发Joomla网站

在我当前的CSS中,如果我把“background:url('images')”放在渐变上面,那么它会显示图像,但不会显示渐变;如果我把它放在渐变下面,它会显示渐变,但不会显示图像

我目前使用的代码如下:

body#bd {
background-image: linear-gradient(bottom, rgb(142,210,46) 2%, rgb(171,252,74) 51%, rgb(206,255,104) 76%);
background-image: -o-linear-gradient(bottom, rgb(142,210,46) 2%, rgb(171,252,74) 51%, rgb(206,255,104) 76%);
background-image: -moz-linear-gradient(bottom, rgb(142,210,46) 2%, rgb(171,252,74) 51%, rgb(206,255,104) 76%);
background-image: -webkit-linear-gradient(bottom, rgb(142,210,46) 2%, rgb(171,252,74) 51%, rgb(206,255,104) 76%);
background-image: -ms-linear-gradient(bottom, rgb(142,210,46) 2%, rgb(171,252,74) 51%, rgb(206,255,104) 76%);
background-image: -webkit-gradient(
linear,
left bottom,
left top,
color-stop(0.02, rgb(142,210,46)),
color-stop(0.51, rgb(171,252,74)),
color-stop(0.76, rgb(206,255,104)));
background:
url('https://dl.dropbox.com/u/6512758/onebeat.ro/right.png') no-repeat top right,
url('https://dl.dropbox.com/u/6512758/onebeat.ro/left.png') no-repeat top left;
}

所有内容都必须位于同一背景图像属性上,否则上一个背景语句将替换为下一个背景语句。例如:

background-image: url('https://dl.dropbox.com/u/6512758/onebeat.ro/right.png') no-repeat top right, linear-gradient(bottom, rgb(142,210,46) 2%, rgb(171,252,74) 51%, rgb(206,255,104) 76%);
点击此处查看更多示例:

谢谢你的链接,我会查的