V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
linlis
V2EX  ›  问与答

-moz-animation 可以缩写么?

  •  
  •   linlis · Apr 2, 2012 · 6794 views
    This topic created in 5147 days ago, the information mentioned may be changed or developed.
    -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 replies    1970-01-01 08:00:00 +08:00
    run2
        1
    run2  
       Apr 2, 2012
    linlis
        2
    linlis  
    OP
       Apr 2, 2012
    @sobigfish 谢谢,确实是支持的,我找到我实际运用中的问题所在了:
    在实际应用中我把 0s 写成了 0,结果 -webkit- 认0 但是 -moz- 不认0...
    run2
        3
    run2  
       Apr 2, 2012
    @linlis 呵呵 这个厉害。。。提交给moz 当bug处理吧
    wctbok
        4
    wctbok  
       Apr 3, 2012
    https://developer.mozilla.org/en/CSS/time
    里面有官方对于时间不能为0的解释
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1068 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 18:22 · PVG 02:22 · LAX 11:22 · JFK 14:22
    ♥ Do have faith in what you're doing.