CSS ?? ?? ?? ???
Role: transition-property ??? ?? ??? ???? CSS ??? ??? ?????. (??? CSS ??? ???? ?? ??? ?????.) ?: ?? ??? ????? ???? ?? ?? ??? ???? ?? ?? ? ?????.
??: ??transition-property: none|all|property;
??: none ?? ??? ?? ??? ?? ????. ?? ??? ?? ??? ????. ??? ?? ??? ???? CSS ?? ?? ??? ?????. ??? ??? ?????.?
??: ?? ?? ?? ??? ?????. ??? ??? ??? 0? ?? ?? ??? ????.
CSS ?? ?? ?? ?
<!DOCTYPE html> <html> <head> <style> div { width:100px; height:100px; background:blue; transition-property: width; transition-duration: 2s; -moz-transition-property: width; /* Firefox 4 */ -moz-transition-duration: 2s; /* Firefox 4 */ -webkit-transition-property: width; /* Safari and Chrome */ -webkit-transition-duration: 2s; /* Safari and Chrome */ -o-transition-property: width; /* Opera */ -o-transition-duration: 2s; /* Opera */ } div:hover { width:300px; } </style> </head> <body> <div></div> <p>請把鼠標(biāo)指針移動到藍(lán)色的 div 元素上,就可以看到過渡效果。</p> <p><b>注釋:</b>本例在 Internet Explorer 中無效。</p> </body> </html>
??? ????? ??? "???? ??" ??? ?????