IE浏览器的CSS旋转属性

问题描述:

任何人都可以解释在Internet Explorer中的旋转数的转换因子,或者如何正确使用它?例如:IE浏览器的CSS旋转属性

 filter: progid:DXImageTransform.Microsoft.BasicImage(rotation= 1.8); 
    -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation= 1.8)"; 
copy-ms-transform:rotate(11.5deg); 

我明白铬旋转,因为它以度为单位,但我不知道这是使用为单位。

Microsoft's documentation

iRotation specifies or receives one of the following values: 
    0 Default. Content is not rotated. 
    1 Content is rotated 90 degrees. 
    2 Content is rotated 180 degrees. 
    3 Content is rotated 270 degrees. 

从微软文档:

设置或获取表明九十度的增量内容是否旋转值。

所以基本上,当使用BasicImage Rotation属性时,1等于90度。所以1.8的旋转等于162度的旋转。

+0

那么如何获得像11度这样的值呢?我尝试使用小数,但它没有做任何事情。 – Sam

+1

@Sam如果你看看我的答案中链接到的文档,你会发现它指定输入值是一个“整数”,所以它会出现旋转只能以90º的增量进行。 –

+0

@Sam:使用数学和四舍五入来尽可能接近? '11/90 = 0.1222'如果它有限制的话,我真的不知道它有多少个小数位数也是有限的。 – animuson