CSS Transform not working in IE 8

廉价感情. 提交于 2019-12-21 05:00:53

问题


I am attempting to rotate or transform a div using the CSS Transform property. Here is my transform CSS Code:

-webkit-transform: rotate(270deg);
-moz-transform: rotate(270deg);
-ms-transform: rotate(270deg);
-o-transform: rotate(270deg);
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=0);
transform: rotate(270deg);

The above code works great in all but IE 8. I need to find a way to support IE 8.

How can I create a fallback for IE8?

Note: I am using jQuery (1.8.2), HTML 5 Doctype and modernizr if that makes a difference in the answer you provide. I prefer a CSS only solution but willing to use a javascript/jQuery solution.

Here is a fiddle with the HTML and CSS.


回答1:


If you see your "filter:" rotation to 3, it will give a 270 degree rotation in IE 8 (and downward to v5.5, IIRC).

http://msdn.microsoft.com/en-us/library/ms532918(v=vs.85).aspx



来源:https://stackoverflow.com/questions/12701742/css-transform-not-working-in-ie-8

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