一、進(jìn)入頁(yè)面多少秒后消失
1. setTimeout(function(){document.getElementById("shou_gif").style.display="none";},10000);
2.
$(document).ready(function(){ //頁(yè)面加載完之后,自動(dòng)執(zhí)行該方法
setTimeout(function(){$("#shou_gif").hide();},14000); //14秒后執(zhí)行該方法
});
if (succ.style.display="block") {
setTimeout(function(){$("#succ").hide();},4000);
}
二、當(dāng)我們想動(dòng)畫延遲生效時(shí),加上下面的代碼則會(huì)延遲動(dòng)畫,時(shí)間可以自由調(diào)節(jié)
animation-delay: 2s;
-moz-animation-delay: 2s;
-webkit-animation-delay: 2s;
三、持續(xù)時(shí)間
animation-duration: 2s;
-webkit-animation-duration: 2s;






