Css 如何在firefox中旋转元素

Css 如何在firefox中旋转元素,css,3d,rotation,Css,3d,Rotation,我正试着像这样旋转一个div 在chrome中哪一个看起来比firefox好,但为什么呢?firefox不支持这些类型的旋转,还是我错过了css属性 干杯您在透视属性中缺少px .container { height: 100% ; width: 100% ; -webkit-perspective: 200px ; -moz-perspective: 200px ; /* 200px instead of 200 */ margin-left:

我正试着像这样旋转一个div

在chrome中哪一个看起来比firefox好,但为什么呢?firefox不支持这些类型的旋转,还是我错过了css属性


干杯

您在
透视
属性中缺少
px

.container {
    height: 100% ;
    width: 100% ;
    -webkit-perspective: 200px ; 
       -moz-perspective: 200px ; /* 200px instead of 200 */

    margin-left:200px ;
}