问答详情
源自:1-4 CSS3中transition5种效果

transition的5种效果

<!DECTYPE html>
<html>
<head>
    <title></title>
    
    <style>
    #wrapper{
        width:1024px;
        margin:() auto;
    }
    
    progress-bar{
        height:40px;
        wedth:40px;
        background-color:#69c;
    }
    pregress-bar:hover{
        width:960px;
    }
    #bar1{
        -moz-transition:width 5s linear;
    }
    #bar2{
        -moz-transition:width 5s ease;
    }
    #bar3{
        -moz-transition:width 5s ease-in;
    }
    #bar4{
        -moz-transition:width 5s ease-out;
    }
    #bar5{
        -moz-transition:width 5s ease-in-out;
    }
    </style>
         </head>
    
<body>
    <div id="wrapper">
    <p>linear</p>
    <div class="progress-bar"  id="bar1"></div>
    <p>ease</p>
    <div class="progress-bar"  id="bar2"></div>
    <p>ease-in</p>
    <div class="progress-bar"  id="bar3"></div>
    <p>ease-out</p>
    <div class="progress-bar"  id="bar4"></div>
    <p>ease-in-out</p>
    <div class="progress-bar"  id="bar5"></div>
    </div>
    </body>
    </html>

想问下为什么我的这个怎么显示不出来那效果呢?

提问者:123_何以 2015-06-03 21:00

个回答

  • C_C92
    2015-06-03 22:05:35
    已采纳

    556f09930001b8e604290195.jpg

    556f099300014d3603470035.jpg

    好好检查一下吧,写代码这么不认真。