【问题标题】:Transform3d did not work for firefoxTransform3d 不适用于 Firefox
【发布时间】:2017-08-11 09:29:19
【问题描述】:

Transform 3d 在最新版本的 Firefox 中运行良好,但在其新的更新版本 52.0.1(32 位)中,它无法运行。 CSS代码如下

菜单关闭时:

.c-menu {
     transform: translate3d(268px, 0px, 0px);
    -moz-transform: translate3d(268px, 0px, 0px);
    -webkit-transform: translate3d(268px, 0px, 0px);
}

菜单打开时(右起):

#sidebar.toggled {
    opacity: 1;
    transform: translate3d(0px, 0px, 0px) !important;
    -webkit-transform: translate3d(0px, 0px, 0px) !important;
    -moz-transform: translate3d(0px, 0px, 0px) !important;
}

【问题讨论】:

    标签: css firefox css-transitions


    【解决方案1】:

    translate3d 在最新的 Firefox 版本中不起作用,这样做可以解决您的问题

    .c-menu {
        right: -268px
    }
    
    #sidebar.toggled {
        opacity: 1;
        right: 0px
    }
    

    【讨论】:

      猜你喜欢
      • 2013-02-18
      • 1970-01-01
      相关资源
      最近更新 更多