天天看点

浏览器兼容性之背景色渐变

背景颜色线性渐变:

body {background: #015b7d;

    background-image: -moz-linear-gradient(top, #009ebe, #015b7d );   

    background-image: -webkit-gradient(linear,left bottom,left top,color-stop(0, #009ebe),color-stop(1, #015b7d));   

    filter:  progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#009ebe', endColorstr='#015b7d');  

    -ms-filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#009ebe',endColorstr='#015b7d');  

}