CSS 转换在 IE 8 和 IE7 浏览器中不起作用

CSS Transform not working in IE 8 and IE7 browser

本文关键字:IE7 浏览器 不起作用 转换 IE CSS      更新时间:2023-09-26

我想在IE7和IE8浏览器中使用css转换旋转范围文本。

<SPAN style="FONT-SIZE: 14px; -ms-transform:rotate(-90deg);   FONT-FAMILY: Segoe UI; POSITION: absolute; ZOOM: 1; COLOR: #707070; LEFT: -64px;  TOP: 234px; VISIBILITY: visible">Sales Amount in millions(USD)
</SPAN>

上面的代码将在IE9 +和其他浏览器中旋转文本。 但是我怎样才能旋转在IE7和IE8浏览器中工作的跨度文本。

过滤器以支持旧版本

如何使用过滤器旋转跨度元素?

谢谢

湿 婆

filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);

BasicImage 筛选器的旋转属性可以接受以下四个值之一:0、1、2 或 3,这些值将分别旋转元素 0、90、180 或 270 递减。

css 的一些新属性可以使用 IE 的 filter 属性来实现。例如,如果要进行缩放转换,请使用:

-webkit-transform: scale(1.05);
-moz-transform: scale(1.05);
-o-transform: scale(1.05);

以及非IE浏览器的等扩展。但是如果你想把它用于IE 8或更早版本。您应该这样做:

filter: progid:DXImageTransform.Microsoft.Matrix(M11=1.05,M12=0,M21=0,M22=1.05,SizingMethod='auto expand');
您可以使用从

IE 9及以后降级的矩阵过滤。此外,正如他们在此链接中提到的:http://msdn.microsoft.com/en-us/library/ms533014(v=vs.85).aspx

Resizes, rotates, or reverses the content of the object using matrix transformation.

这是另一个链接,让您更轻松:http://www.boogdesign.com/examples/transforms/matrix-calculator.html

90度旋转示例:

-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.00000000, M12=-1.00000000, M21=1.00000000, M22=0.00000000,sizingMethod='auto expand')";
filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.00000000, M12=-1.00000000, M21=1.00000000, M22=0.00000000,sizingMethod='auto expand');
-moz-transform:  matrix(0.00000000, 1.00000000, -1.00000000, 0.00000000, 0, 0);
-webkit-transform:  matrix(0.00000000, 1.00000000, -1.00000000, 0.00000000, 0, 0);
-o-transform:  matrix(0.00000000, 1.00000000, -1.00000000, 0.00000000, 0, 0);