CSS实现背景渐变

一、从上往下渐变
body
{
FILTER
: progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=#ffffff,endColorStr=#000000)";
}

二、从左上至右下渐变
body
{
FILTER
: Alpha( style=1,opacity=25,finishOpacity=100,startX=50,finishX= 100,startY=50,finishY=100); 
background-color
: skyblue;
}

三、从左往右渐变
body
{
FILTER
: progid:DXImageTransform.Microsoft.Gradient(gradientType=1,startColorStr=#ffffff,endColorStr=#000000)";
}

posted @ 2007-06-11 15:13  M'  阅读(398)  评论(2编辑  收藏  举报