V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
linlis
V2EX  ›  问与答

-moz-animation 可以缩写么?

  •  
  •   linlis · 2012-04-02 20:58:54 +08:00 · 6103 次点击
    这是一个创建于 4399 天前的主题,其中的信息可能已经有所发展或是发生改变。
    -webkit-animation 是可以缩写的,比如

    div {
    -webkit-animation-name: example;
    -webkit-animation-duration: 1s;
    -webkit-animation-timing-function: ease;
    -webkit-animation-delay: 1s;
    -webkit-animation-iteration-count: 2;
    -webkit-animation-direction: alternate;
    }

    可以缩写成

    div {-webkit-animation: example 1s ease 1s 2 alternate;}

    但是我试了下
    div {-moz-animation: example 1s ease 1s 2 alternate;}
    好像就不生效了,是 -moz-animation 就不能这样缩写么?
    4 条回复    1970-01-01 08:00:00 +08:00
    sobigfish
        1
    sobigfish  
       2012-04-02 21:15:35 +08:00
    linlis
        2
    linlis  
    OP
       2012-04-02 21:43:10 +08:00
    @sobigfish 谢谢,确实是支持的,我找到我实际运用中的问题所在了:
    在实际应用中我把 0s 写成了 0,结果 -webkit- 认0 但是 -moz- 不认0...
    sobigfish
        3
    sobigfish  
       2012-04-02 21:55:52 +08:00
    @linlis 呵呵 这个厉害。。。提交给moz 当bug处理吧
    wctbok
        4
    wctbok  
       2012-04-03 12:16:52 +08:00
    https://developer.mozilla.org/en/CSS/time
    里面有官方对于时间不能为0的解释
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4941 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 1438ms · UTC 09:42 · PVG 17:42 · LAX 02:42 · JFK 05:42
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.