찾다

 >  Q&A  >  본문

css3动画 - css3 transition设置多个属性的时候不能只用逗号分隔?

比如这个transition: width,height 1s ease;

怪我咯怪我咯2867일 전820

모든 응답(4)나는 대답할 것이다

  • 高洛峰

    高洛峰2017-04-17 11:40:35

    transition: width,height 1s,1s ease,ease;
    我知道了...后面的值也要用逗号多写一遍...

    회신하다
    0
  • 阿神

    阿神2017-04-17 11:40:35

    多个属性可以直接 transition: all 1s ease

    회신하다
    0
  • 高洛峰

    高洛峰2017-04-17 11:40:35

    transition: width 1s ease, height 1s ease;

    회신하다
    0
  • 阿神

    阿神2017-04-17 11:40:35

    不要逗号,空格隔开就行!

    회신하다
    0
  • 취소회신하다