Loading纯JS
2024-10-09 00:01:10
function showLoading() {
document.getElementById("over").style.display = "block";
document.getElementById("layout").style.display = "block";
}
function removeLoading() {
document.getElementById("over").style.display = "none";
document.getElementById("layout").style.display = "none";
}
.over {
display: none;
position: absolute;
top:;
left:;
width: 100%;
height: 100%;
background-color: #f5f5f5;
opacity: 0.5;
z-index:;
} .layout {
display: none;
position: absolute;
top: 40%;
left: 40%;
width: 20%;
height: 20%;
z-index:;
text-align: center;
}
<div id="over" class="over"></div>
<div id="layout" class="layout"><img src="../../images/loading.gif" alt=""/></div>
最新文章
- Volley框架设置sessionid
- Oracle循环查询结果集 自定义函数
- 让你的APK瘦成一道闪电
- ASP.NET MVC中解决日志并发处理log4net
- Jquery中$.post()与$.get()区别
- linux命令学习01-mkdir
- 通过崩溃地址找错误行数之Delphi版
- 物理数据模型(PDM)->;概念数据模型 (CDM)->;面向对象模型 (OOM):适用于已经设计好数据库表结构了。
- ng1笔记
- 【转】Install libimobiledevice on Mac OSX
- python数据集处理
- Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL
- TestLink工具使用手册介绍
- vscode 插件推荐 - 献给所有前端工程师(更新与2018.8.1)
- python面向对象-三大特性
- [UE4]运行模式
- AutoMapper之自定义解析
- 深入了解.Net上下文
- Web App、Hybrid App与Native App的设计差异
- Spring Roo 想知道源码,怎么实现自动生成枯燥的有规律的文件