支持IE浏览器的渐变效果

来源:互联网 发布:js array pop 编辑:程序博客网 时间:2024/05/16 15:20

<div class="gradient">支持ie浏览器</div>


css部分

.gradient{  width:300px; height:150px;filter:alpha(opacity=100 finishopacity=50 style=1 startx=0,starty=0,finishx=0,finishy=150) progid:DXImageTransform.Microsoft.gradient(startcolorstr=yellow,endcolorstr=red,gradientType=1);
 -ms-filter:alpha(opacity=100 finishopacity=50 style=1 startx=0,starty=0,finishx=0,finishy=150) progid:DXImageTransform.Microsoft.gradient(startcolorstr=yellow,endcolorstr=red,gradientType=1);
background:-webkit-linear-gradient(left,yellow,red);}



<div class="gradient">支持ie浏览器</div>


效果图:


原创粉丝点击