css实现背景渐变

background: -moz-linear-gradient(top, #3C6875 0%, #003443 100%);
background: -webkit-linear-gradient(top, #3C6875 0%,#003443 100%);
background: -o-linear-gradient(top, #3C6875 0%,#003443 100%);
background: -ms-linear-gradient(top, #3C6875 0%,#003443 100%);
background: linear-gradient(top, #3C6875 0%,#003443 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3C6875', endColorstr='#003443',GradientType=0 );

原文地址:https://www.cnblogs.com/mguo/p/2861697.html