[英]Rotate Image not working in Firefox
Here is my css code 这是我的CSS代码
.buildrag-toggle {
-webkit-transform: rotate(180deg);
-webkit-transition: 300ms ease all;
-moz-transition: 300ms ease all;
-o-transition: 300ms ease all;
transition: 300ms ease all;
}
Can you please explain why this is not working in Firefox only on other browsers? 您能否解释一下为什么仅在其他浏览器上的Firefox中无法使用?
do not use only -webkit-transform
also add transform: transform: rotate(180deg)
不只使用-webkit-transform
还添加了transform: transform: rotate(180deg)
you could also add ms-transform
for IE9 support 您还可以添加ms-transform
以支持IE9
eg.: 例如。:
-ms-transform: rotate(180deg); /* IE 9 */
-webkit-transform: rotate(180deg); /* Chrome, Safari, Opera */
transform: rotate(180deg);
see: http://www.w3schools.com/cssref/css3_pr_transform.asp 参见: http : //www.w3schools.com/cssref/css3_pr_transform.asp
Write the standard rule, -webkit-
prefix only works in chrome/safari 编写标准规则, -webkit-
前缀仅适用于chrome / safari
.buildrag-toggle {
-webkit-transform: rotate(180deg); /* chrome / safari only */
transform: rotate(180deg); /* standard */
-webkit-transition: 300ms ease all;
-moz-transition: 300ms ease all;
-o-transition: 300ms ease all;
transition: 300ms ease all;
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.