+ -
当前位置:首页 → 问答吧 → 求解?CSS能不能将页面的背景色设置成渐变色

求解?CSS能不能将页面的背景色设置成渐变色

时间:2011-10-13

来源:互联网

如题,我想将页面的背景色设成渐色,有无可能?

作者: bobouc   发布时间: 2011-10-13

filter:alpha(opacity=100 finishopacity=50 style=1 startx=0,starty=0,finishx=0,finishy=150) progidXImageTransform.Microsoft.gradient(startcolorstr=red,endcolorstr=blue,gradientType=0);   
-ms-filter:alpha(opacity=100 finishopacity=50 style=1 startx=0,starty=0,finishx=0,finishy=150) progidXImageTransform.Microsoft.gradient(startcolorstr=red,endcolorstr=blue,gradientType=0);/*IE8*/   
background:-moz-linear-gradient(top, red, rgba(0, 0, 255, 0.5));
background:-webkit-gradient(linear, 0 0, 0 bottom, from(#ff0000), to(rgba(0, 0, 255, 0.5)));

作者: wd513517   发布时间: 2011-10-13

楼主去wiki里边了解一下CSS3

作者: cycloned   发布时间: 2011-10-13

用一个渐变的背景图片不可以吗

作者: lvyuan987   发布时间: 2011-10-13