我如何一次添加渐变和阴影滤镜(IE7) [英] How can i add gradient and box shadow filter at a time (ie7)
本文介绍了我如何一次添加渐变和阴影滤镜(IE7)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我创建了一个网站,但我也希望我的网站在ie7中看起来也不错.我给了一些CSS来样式化我的网站;
Hello everyone,
I created a web site, but i want my web site to look good in ie7 ,too. I give some css to style my web site;
background: -moz-linear-gradient(top, #0b2b61, #1153c0);
background: -webkit-gradient(linear, left top, left bottom, from(#0b2b61),to(#1153c0));
background: -o-linear-gradient(#0b2b61, #1153c0);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0b2b61', endColorstr='#1153c0'); /* this is for ie
因此,它有效.但是我想添加一个box shadow属性.有没有一种方法来定义新的过滤器"或添加参数以处理两个过滤器(渐变和框阴影).
谢谢,
So, it works. But i want to add an box shadow property. Is there a way to define new "filter" or add parameters to handle both filters (gradient and box shadow).
Thanks,
推荐答案
否. IE7中的CSS3支持非常有限.
No. CSS3 suppport in IE7 is quite limited.
这篇关于我如何一次添加渐变和阴影滤镜(IE7)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文