IE9梯度+图像(IE9 gradient + image)

2019-07-29 21:47发布

我想使用的filter CSS属性都渐变和图像。 我发现并试图像下面这样:

filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/Controls/Calendar/Events/email.png'), progid:DXImageTransform.Microsoft.gradient( startColorstr='#D9D9D9', endColorstr='#989898',GradientType=0 ); /* IE6-9 */

问题是,只有过滤器第1部分适用。 有谁知道如何做到这一点?

Answer 1:

According to the Microsoft Developer Network, you can "apply multiple filters", by separating them with spaces.

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 */


文章来源: IE9 gradient + image