[英]rotate text 330 degree in IE
is it possible to rotate text in IE是否可以在 IE 中旋转文本
-moz-transform: rotate(330deg); /* FF3.5+ */
-o-transform: rotate(330deg); /* Opera 10.5 */
-webkit-transform: rotate(330deg); /* Saf3.1+, Chrome */
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=330deg); /* IE6,IE7 */
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=330deg)"; /* IE8 */
lines written for IE are not working.为 IE 编写的行不起作用。
Can any one help.任何人都可以帮忙。
EDIT.编辑。 I want to rotate text crossed我想旋转文本交叉
As far as I am aware, rotation in IE is only possible in 90 degree intervals.据我所知,IE 中的旋转只能以 90 度为间隔。
Check docs here: http://msdn.microsoft.com/en-us/library/ms532918%28v=vs.85%29.aspx在此处查看文档: http : //msdn.microsoft.com/en-us/library/ms532918%28v=vs.85%29.aspx
Try this new example..试试这个新例子..
-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.8660253882408142, M12=0.5, M21=-0.5, M22=0.8660253882408142,sizingMethod='auto expand')"; /* IE6-8 */
This has working这有工作
if you want more rotation angle means visit http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/filters/matrix.htm如果你想要更多的旋转角度意味着访问http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/filters/matrix.htm
As it was already pointed out, the solution you want depends on the targeted ie version.正如已经指出的那样,您想要的解决方案取决于目标 ie 版本。
You should use all the transforms with different vendor prefixes您应该使用具有不同供应商前缀的所有转换
-vendor-transform : rotate(330deg);
and for ie versions that do not support css rotation, you can convert the rotation into a filter matrix
and apply it to the element.而对于不支持 css 旋转的 ie 版本,你可以将旋转转换为filter matrix
并将其应用于元素。
Here's a site that automatically converts the css3 transform to a filter matrix :这是一个自动将 css3 转换转换为过滤器矩阵的站点:
/* IE8+ - must be on one line, unfortunately */
-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.8660254037844387, M12=0.49999999999999994, M21=-0.49999999999999994, M22=0.8660254037844387, SizingMethod='auto expand')";
/* IE6 and 7 */
filter: progid:DXImageTransform.Microsoft.Matrix(
M11=0.8660254037844387,
M12=0.49999999999999994,
M21=-0.49999999999999994,
M22=0.8660254037844387,
SizingMethod='auto expand');
The only downside is that in order to make the transform-origin the center of the element, oyu must provide the width and height of that element.唯一的缺点是,为了使变换原点成为元素的中心,oyu 必须提供该元素的宽度和高度。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.