js定时器控制图片隐藏
<!doctype html> <html> <head> <meta charset="utf-8"> <title>无标题文档</title> </head> <body> <div id="loading" style="margin:0 auto;"> <div class="img"> <img src="loading.gif" alt="加载中..."> <p>加载中...</p> </div> </div> <script> var oloading=document.getElementById('loading'); setTimeout(function(){ oloading.style.display='none'; },500); </script> </body> </html>
欢迎访问每天进步网:https://meitianjinbu.cn/