CSS转换不工作在IE 8 [英] CSS Transform not working in IE 8
问题描述
我试图使用CSS Transform属性旋转或变换div。这里是我的transform CSS代码:
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);
上述代码在除IE 8之外的所有功能中都很好。我需要找到一种方法来支持IE 8 。
The above code works great in all but IE 8. I need to find a way to support IE 8.
如何为IE8创建备用广告?
How can I create a fallback for IE8?
注意:我使用jQuery(1.8.2),HTML 5 Doctype和modernizr,如果这在你提供的答案有所不同。我更喜欢CSS的解决方案,但愿意使用javascript / jQuery解决方案。
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.
推荐答案
如果你看到你的filter:旋转到3,它会给出一个270度旋转IE 8到v5.5,IIRC)。
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
这篇关于CSS转换不工作在IE 8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!