.gradient{
background: -moz-linear-gradient(top, #000000 0%, #ffffff 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#000000), color-stop(100%,#ffffff));
background: -webkit-linear-gradient(top, #000000 0%,#ffffff 100%);
background: -o-linear-gradient(top, #000000 0%,#ffffff 100%);
background: -ms-linear-gradient(top, #000000 0%,#ffffff 100%);
background: linear-gradient(to bottom, #000000 0%,#ffffff 100%); /*由上往下渐变(白色渐变到黑色)*/
background: linear-gradient(to left, #000000 0%,#ffffff 100%); /*由左往右渐变(白色渐变到黑色)*/
}
css3背景颜色渐变
最新推荐文章于 2024-06-20 11:21:40 发布