CSS3背景色渐变(各浏览器兼容)

作者: 来源: 更新时间:2012-12-31 20:02:30 点击:

背景颜色渐变(适合各浏览器)

#idname

{

      filter:alpha(opacity=100 finishopacity=50 style=1 startx=0,starty=0,finishx=0,finishy=150) progid:DXImageTransform.Microsoft.gradient(startcolorstr=#E5F5FF,endcolorstr=#ffffff,gradientType=0); 
     -ms-filter:alpha(opacity=100 finishopacity=50 style=1 startx=0,starty=0,finishx=0,finishy=150) progid:DXImageTransform.Microsoft.gradient(startcolorstr=#E5F5FF,endcolorstr=#ffffff,gradientType=0); 
    background:#E5F5FF; /* 一些不支持背景渐变的浏览器 */ 
    background:-moz-linear-gradient(top, #E5F5FF, white); 
    background:-webkit-gradient(linear, 0 0, 0 bottom, from(#E5F5FF), to(#ffffff)); 

}