首页 > 代码库 > 线性渐变

线性渐变

1 background: -webkit-gradient(linear,left bottom,left top,color-stop(0,white),color-stop(0.5,#eee));
2 background: -webkit-linear-gradient(center bottom,white 0,#eee 50%);
3 background: -moz-linear-gradient(center bottom,white 0,#eee 50%);
4 background: -o-linear-gradient(bottom,white 0,#eee 50%);
5 background: -ms-linear-gradient(top,#fff 0,#eee 50%);
6 filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=‘#ffffff‘,endColorstr=‘#eeeeee‘,GradientType=0);
7 background: linear-gradient(top,#fff 0,#eee 50%)