使用此代码,
<div class="grilleLayer"><div>
.grilleLayer
{
width:100%;
height:700px;
background:url('http://s8.postimg.org/90qdtbn1t/temp.png') repeat scroll left top;
}
body
{
background: #e0e5e1; /* Old browsers */
background: -moz-linear-gradient(left, #e0e5e1 0%, #ffffff 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, right top, color-stop(0%,#e0e5e1), color-stop(100%,#ffffff)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(left, #e0e5e1 0%,#ffffff 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(left, #e0e5e1 0%,#ffffff 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(left, #e0e5e1 0%,#ffffff 100%); /* IE10+ */
background: linear-gradient(to right, #e0e5e1 0%,#ffffff 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e0e5e1', endColorstr='#ffffff',GradientType=1 ); /* IE6-9 */
}
这是小提琴!
或者
你可以在这里生成你想要的渐变颜色