loading图片下载:loading
页面代码:
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8" %> <%@include file="/context/mytags.jsp"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <c:set var="contextPath" value="${pageContext.request.contextPath}"></c:set> <!DOCTYPE html> <html lang="zh-cn"> <title>逆龄奇迹</title> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> <meta name="description" content="Write an awesome description for your new site here. You can edit this line in _config.yml. It will appear in your document head meta (for Google search results) and in your feed.xml site description. "> </head> <body> <div id="loading" hidden="true" style="width:100% !important;height:100%;text-align:center;z-index: 999;position: absolute;top:0px;background: gray;"> <div style="margin-top:200px;"> <p> <img src="${contextPath}/plug-in/distribution/images/loading.png" width="30xp" height="30px" /><br/> <font style="height:30px;vartical-algin:center;padding-left:5px;color: white;"> 数据加载中,请稍等......</font> </p> </div> <iframe id="reportIframe" src="" frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="yes" width="100%" height="100%"> </iframe> </div> </body> </html>
//展示 $("#loading").show(); //隐藏 $("#loading").hide();