[英]css3 rotation doesn't work in IE9
这段代码使我可以在鼠标悬停在其中之一上时缓慢旋转图像。
.foo img {
-webkit-transition: all 0.5s ease;
-moz-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
-ms-transition: all 0.5s ease;
transition: all 0.5s ease;
}
.foo img:hover {
-webkit-transform: rotate(-10deg);
-moz-transform: rotate(-10deg);
-o-transform: rotate(-10deg);
-ms-transform: rotate(-10deg);
transform: rotate(-10deg);
}
它适用于FF18和Opera。 但是,即使-ms-transform应该是正确的解决方案,我也无法在IE9上使用它。 IE9的行为就像没有特定的CSS img:hover
规则一样。 有什么提示吗? 谢谢
http://modernizr.com/download/
Modernizr应该可以解决问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.