css transition属性,适用于firefox chrome
css transition(过渡)属性可以实现动态延展效果,适用于firefox、chrome、Safari、Opera、IE10+浏览器,对IE的10以下版本浏览器无效
测试代码
[php]<style>
.tdiv{width:100px;height:100px;background:blue;transition:width 2s,height 1s;}
.tdiv:hover{width:600px;height:300px}
</style>
<div class="tdiv"></div>[/php]
效果:
.tdiv{width:100px;height:100px;background:blue;tran... css transition, css历程, css过渡阅读全文