2013-07-18 34 views

回答

3

transition速记不会在同一个地方支持多种特性还需要overflow: hidden才能使其看起来像滑动。 Updated demo

3

你需要逗号单独所需的属性转变:

transition: max-height .5s ease, opacity .5s ease; 

您:

p { 
    opacity: 0; 
    max-height: 0; 
    transition: max-height .5s ease, opacity .5s ease;  
} 

http://jsfiddle.net/pZngX/

+1

这[实际上使得第一过渡最后0](http://jsfiddle.net/minitech/pZngX/1/)。 – Ryan

+0

不错,谢谢 –