变换rotateY(180deg)是否有IE回退?需要3D翻转动画!
答案 0 :(得分:2)
我没有IE8进行测试,但我认为这可能有用:(ie5.5 +) filter:progid:DXImageTransform.Microsoft.BasicImage(rotation = 3);
http://msdn.microsoft.com/en-us/library/ms532972%28VS.85%29.aspx
IE的Matrix Filter可能是另一种选择: http://msdn.microsoft.com/en-us/library/ms533014%28VS.85%29.aspx
当我玩其他东西时,我从这个网站得到了答案: http://snook.ca/archives/html_and_css/css-text-rotation
个人使用IE6-8时,最适合我的标签是display:none; P
答案 1 :(得分:0)
我知道这个问题很老,但上周我遇到了同样的问题。你需要的是:
.flipHorizontal {
filter: "fliph";
}
更具体地说,如果你想在y轴上连续旋转它,我创建了一个jquery插件来使用:
**
* jQuery Rotate On Axis In IE Plugin 1.0.0
*
* Copyright (c) 2014 Aryeh Citron
*
* Licensed under MIT: http://www.opensource.org/licenses/mit-license.php
*/
(function ($)
{
$.fn.rotateOnAxisInIE = function (options)
{
var settings = $.extend(
{
spinSpeed: "slow",
}, options);
return this.each(function ()
{
var startingInterval;
switch (settings.spinSpeed)
{
case "slow": startingInterval = 0.006; break;
case "medium": startingInterval = 0.01; break;
case "fast": startingInterval = 0.03; break;
default: startingInterval = 0.01; break;
}
var image = this;
var imageWidth = 1;
var gettingSmaller = true;
var fullRotation = true;
var interval = startingInterval;
var increment = startingInterval / 4;
var refreshRateInMilliseconds = 35;
setInterval(function ()
{
$(image).css("msTransform", "scaleX(" + imageWidth + ")");
if (gettingSmaller)
{
interval = interval + increment;
imageWidth = imageWidth - interval;
}
else
{
interval = interval - increment;
imageWidth = imageWidth + interval;
}
if (imageWidth <= 0)
{
gettingSmaller = false;
if ($(image).css("filter") == "")
$(image).css("filter", "fliph");
else
$(image).css("filter", "");
imageWidth = 0.01;
}
if (imageWidth >= 1)
{
gettingSmaller = true;
}
if (gettingSmaller && interval < 0)
interval = 0;
}, refreshRateInMilliseconds);
});
};
}(jQuery));
使用示例
$("#myImageId").rotateOnAxisInIE();
或
$("#myImageId").rotateOnAxisInIE({ spinSpeed: "fast" });
答案 2 :(得分:-1)
您需要使用过滤器
#rotate {
-ms-transform:rotateY(180deg); //IE9
}