一样的代码怎么不显示一样的效果?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0;" name="viewport" /> <title>无标题文档</title> <link href="jquery-3.2.2.js" type="text/javascript" /> <style> .loading{ width:100%; height:100%; position:fixed; top:0; left:0; z-index:100; background:#FFF; } .loading .pic{width:64px; height:64px; background:url(image/5.gif); position:absolute; top:0; bottom:0; left:0; right:0; margin:auto; } </style> <script> $(function(){ var loading='<div class="loading"><div class="pic"></div></div>' $("body").append(loading); setInterval(function(){ $(".loading").fadeOut(); },3000) }) </script> </head> <body> <img src="http://imgsrc.baidu.com/imgad/pic/item/1e30e924b899a9017c518d1517950a7b0208f5a9.jpg" alt="" /> </body> </html>
这代码有什么问题吗,怎么不能出现视频中的效果啊,直接显示图片