App下載
首頁(yè)javascriptbackgroundjQuery Style - 如何加載背景圖象與延遲

jQuery Style - 如何加載背景圖象與延遲

我們想知道如何加載背景圖象與延遲。

<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='http://code.jquery.com/jquery-git.js'></script>
<script type='text/javascript'>
       $('document').ready(function(){
            setTimeout(function() {
                $('body').css('background-image','url(http://m.o2fo.com/style/download.png)');
            },1000);
        });

</script>
</head>
<body>
</body>
</html>