How to add alpha filter to any HTML element and keep the other filters in IE?

前端 未结 3 1217
误落风尘
误落风尘 2020-12-20 21:11

If I have this HTML


Then this javascript works in IE6

         


        
3条回答
  •  暖寄归人
    2020-12-20 21:51

    You can give n number of filters you want but just keep appending them one after the other separated by a space. For example ,

    STYLE="filter:progid:DXImageTransform.Microsoft.MotionBlur(strength=50)
            progid:DXImageTransform.Microsoft.Alpha(opacity=60);"
    

    Check this link for more : http://msdn.microsoft.com/en-us/library/ms532847%28v=vs.85%29.aspx

    I hope that answers your question.

提交回复
热议问题