rotate element using css in IE8 for -45deg

半世苍凉 提交于 2019-12-13 18:12:41

问题


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?


回答1:


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)";



回答2:


You can use this matrix generator to help : http://www.boogdesign.com/examples/transforms/matrix-calculator.html

this one is as well very helpfull : http://www.useragentman.com/IETransformsTranslator/



来源:https://stackoverflow.com/questions/22665189/rotate-element-using-css-in-ie8-for-45deg

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!