好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

css3的transition属性的使用_html/css_WEB-ITnose

transition是将某个属性从一个属性值在指定的时间内平滑过渡到另一个属性值来实现动画效果.
这个属性一般搭配:hover来使

下面看一个例子:鼠标放在div上,0.2s后将div元素的背景色用一秒的时间变成黄色,变化方式是linear

1 div{ background-color:red; transition:background-color 1s linear 0.2s;}2 div:hover{ background-color:yellow;} 

思思博士

查看更多关于css3的transition属性的使用_html/css_WEB-ITnose的详细内容...

  阅读:34次