<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>loading</title>
<style type="text/css">
.loading{
width:100%;
height:100%;
position:fixed;
top:0;
left:0;
background: rgb(255, 255, 255);
z-index:100;
}
#pic{
width:100px;
height:100px;
border:0 solid;
background:url('1.gif') no-repeat fixed center;
position:absolute;
top:0; bottom:0;left:0;right:0;
margin:auto;
}
</style>
<script src="js/jquery-1.11.3.min.js"></script>
<script>
ducument.onreadystatechange=function(){
if(console.document.readyState=="complete"){
$(".loading").fadeOut();
}
}
</script>
</head>
<body>
<div class="loading">
<div id="pic"></div>
</div>
<img src="http://p2.so.qhimgs1.com/t013f4b1dd6267d6c6e.jpg">
<img src="http://p2.so.qhimgs1.com/t013f4b1dd6267d6c6e.jpg">
<img src="http://p2.so.qhimgs1.com/t013f4b1dd6267d6c6e.jpg">
<img src="http://p2.so.qhimgs1.com/t013f4b1dd6267d6c6e.jpg">
</body>
</html>
ducument.onreadystatechange=function(){if(document.readyState=="complate"){$(".loading").fadeOut();}}
你代码写错了, 而且complate你也拼错了吧