是否有用于转换旋转Y(180度)的IE回退?需要3D翻转动画!
我没有 IE8 可以测试,但我认为这可能有效:(ie5.5+) filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
http://msdn.microsoft.com/en-us/library/ms532972%28VS.85%29.aspx
IE的矩阵过滤器可能是另一种选择:http://msdn.microsoft.com/en-us/library/ms533014%28VS.85%29.aspx
当我玩其他东西时,我从这个网站得到了答案:http://snook.ca/archives/html_and_css/css-text-rotation
就个人而言,使用 IE6-8 时,最适合我的标签是显示:无 ;P
这个问题很老,但我上周遇到了同样的问题。 您需要的是:
.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" });
您将需要使用过滤器
#rotate {
-ms-transform:rotateY(180deg); //IE9
}