div+css背景渐变

background: -moz-linear-gradient(center top,#4F4F4F,#373737);

background: -webkit-gradient(linear,0% 0%,0% 100%,from(#4F4F4F),to(#373737));

background: -webkit-linear-gradient(center top,#4F4F4F,#373737);

background: -o-linear-gradient(center top,#4F4F4F,#373737);

filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#4f4f4f,endColorstr=#373737);

-ms-filter: "progid:DXImageTransform.Microsoft.gradient (GradientType=0,startColorstr=#4f4f4f,endColorstr=#373737)";

原文地址:https://www.cnblogs.com/freespider/p/2455214.html