[英]Rotation property not working in IE8
I need to rotate a div element in IE8 browser. 我需要在IE8浏览器中旋转div元素。
I have rendered the arrow (with two div elements) 我已经渲染了箭头(有两个div元素)
<DIV class=e-arrowTip>
<DIV class=e-arrowTipOuter></DIV>
<DIV class=e-arrowTipInner></DIV>
</DIV>
.e-arrowTip{
bottom: -1px;
height: 10px;
position: absolute;
transform: rotate(90deg);
-ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";
filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";
left: 50%;
top: 100%;
overflow: hidden;
visibility: visible;
width: 20px;
}
In IE8, the div element not rotated. 在IE8中,div元素未旋转。
Add the following to .e-arrowTip
: 将以下内容添加到
.e-arrowTip
:
-ms-transform: rotate(90deg);
UPDATE: 更新:
Change .css({"-ms-filter" :
to .css({"msFilter" :
更改
.css({"-ms-filter" :
到.css({"msFilter" :
Credit: https://stackoverflow.com/a/5594170/704808 信用: https : //stackoverflow.com/a/5594170/704808
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.