Multiple CSS filters in IE

后端 未结 3 1894
一个人的身影
一个人的身影 2021-02-14 08:44

I\'m just wondering that it is possible to apply two different filters in IE using CSS. So, I need to use a transparent PNG and also some opacity to a div. Is it po

3条回答
  •  耶瑟儿~
    2021-02-14 09:13

    There cannot be more than 1 filter property, as IE will only take the last one into effect.

    NOTE: Since this seems to be getting a few down votes I wanted to clarify that this doesn't mean you can't apply multiple filters, just that you can only use 1 filter property. If you try applying multiple filters and separate them out into multiple properties, only the last one will take effect.

    According to the following article from MSDN, they are separated not by a comma but a space: http://msdn.microsoft.com/en-us/library/ms532847(v=vs.85).aspx

    Also note that some IE filters (alpha included) require the element to have layout in order to be applied correctly: http://www.satzansatz.de/cssd/onhavinglayout.html

提交回复
热议问题