rotate element using css in IE8 for -45deg

2019-07-25 18:19发布

I want to rotate an element in browsers including IE8. For all other browsers execpt IE8 I can do: <vendor>-transform: rotate(-45deg)

For IE8 I know I have to use -ms-filter: "progid:DXImageTransform.Microsoft.Matrix but I'm unsure what matrix manipulations to set. My matrix brain is kind of rusty.

Anyone?

2条回答
forever°为你锁心
2楼-- · 2019-07-25 18:34
甜甜的少女心
3楼-- · 2019-07-25 18:41

This should do it:

-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.7071067811865476, M12=-0.7071067811865475, M21=0.7071067811865475, M22=0.7071067811865476)";
查看更多
登录 后发表回答