英[dju?re??n] US [du?re??n]
n. ?? ??, ??(??) ??, ???, ??? [???] ?? ??, ?? ?? ???: ??
CSS ????? ?? ?? ???
animation-duration ??? ??? ??????
animation-duration ??? ?????? ??? ???? ? ??? ??? ? ?? ??? ??? ???? ? ?????. ?? ??? animation-duration: time???.
??: animation-duration ??? ?????? ??? ???? ? ??? ??? ? ?? ??? ??? ?????.
??: ??animation-duration: time
??: time? ?????? ???? ? ??? ??? ?????. ???? 0?? ????? ??? ??? ?????.?
??: Internet Explorer 9 ? ?? ??? animation-duration ??? ???? ????.
CSS ????? ?? ?? ?
<!DOCTYPE html> <html> <head> <style> div { width:100px; height:100px; background:red; position:relative; animation:mymove infinite; animation-duration:2s; /* Safari and Chrome */ -webkit-animation:mymove infinite; -webkit-animation-duration:2s; } @keyframes mymove { from {top:0px;} to {top:200px;} } @-webkit-keyframes mymove /* Safari and Chrome */ { from {top:0px;} to {top:200px;} } </style> </head> <body> <p><strong>注釋:</strong>Internet Explorer 9 以及更早的版本不支持 animation-name 屬性。</p> <div></div> <p><b>注釋:</b>始終規(guī)定 animation-duration 屬性,否則時(shí)長(zhǎng)為 0,就不會(huì)播放動(dòng)畫了。</p> </body> </html>
???? ?? ?
??? ????? ??? "???? ??" ??? ?????