参考文档http://www.htmleaf.com/jQuery/Layout-Interface/201607263781.html
* 载入js:
<script src="jquery/jquery-3.2.1.min.js"></script>
<script src="jquery/jquery.preloader.min.js"><script>
<script type="text/javascript">
$(window).preloader({
delay: 1000
});
</script>
html:
<div id="preloader">
内容
</div>
CSS:
<style>
#preloader {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #fff;
z-index: 10000;
}
</style>