通過以下代碼,運(yùn)行出現(xiàn),圖片加載比計(jì)時(shí)器快,是我的代碼有問題,還是圖片本來加載就可,其他的圖片我也試過,并不能像老師運(yùn)行顯示加載完,再顯示圖片
<!doctype html>
<html>
<head>
<meta charset="utf-8" >
<title>定時(shí)器進(jìn)度條</title>
<style>
?.loading{width:100%;height:100%;postion:fixed;top: 0;left: 0;z-index: 100;background: #fff;} ??
?.loading .pic{width:64px;height: 64px;border: 1px solid red;position: absolute;top:0;bottom:0;left:0;right:0;margin: auto;background:url("images/loading.gif");}
</style>
<script src="js/jquery-3.2.1.min.js"></script>
<script>?
$(function(){
? setTimeout(function(){
? ?$(".loading").fadeOut();
? } ,3000)
? })
</script>
</head>
<body>
<div>
? ?<div></div>
</div>
<img src="http://img1.imgtn.bdimg.com/it/u=754131577,1671524070&fm=26&gp=0.jpg" alt=""/>
<img src="http://img3.imgtn.bdimg.com/it/u=3435466924,3415045389&fm=26&gp=0.jpg" alt=""/>
</html>
</html>
2017-07-19
加完仍然有后面兩張圖片加載不出來
2017-07-19
加完<div? class="loading">
???????????? <div class="pic"></div>
???????????? </div>
2017-07-19
div少了class