[英]IE9 gradient + image
I want to use the filter
CSS property for both a gradient and an image. 我想将
filter
CSS属性用于渐变和图像。 I found and tried something like the following: 我发现并尝试了以下操作:
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/Controls/Calendar/Events/email.png'), progid:DXImageTransform.Microsoft.gradient( startColorstr='#D9D9D9', endColorstr='#989898',GradientType=0 ); /* IE6-9 */
the problem is that only 1st part of the filter applies. 问题是只有过滤器的第一部分适用。 Does anyone know how to do it?
有人知道怎么做吗?
According to the Microsoft Developer Network , you can "apply multiple filters", by separating them with spaces. 根据Microsoft开发人员网络的说明 ,可以通过使用空格将它们隔开来“应用多个过滤器”。
Using the following code (no comma between the two filters) should work: 使用以下代码(两个过滤器之间不能使用逗号)应该可以工作:
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/Controls/Calendar/Events/email.png') progid:DXImageTransform.Microsoft.gradient( startColorstr='#D9D9D9', endColorstr='#989898',GradientType=0 ); /* IE6-9 */
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.