css:
#loading{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.3);
<a href="https://www.baidu.com/s?wd=z-index&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1d-mymkuj0LuARYnhf4Pvw90AP8IA3qPjfsn1bkrjKxmLKz0ZNzUjdCIZwsrBtEXh9GuA7EQhF9pywdQhPEUiqkIyN1IA-EUBt3P1fsP10Yn10YrHmsPHbLP1c" target="_blank" class="baidu-highlight">z-index</a>:15000;}
#loading img{
position:absolute;
top:50%;
left:50%;
width:50px;
height:50px;
margin-top:-15px;
<a href="https://www.baidu.com/s?wd=margin-left&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1d-mymkuj0LuARYnhf4Pvw90AP8IA3qPjfsn1bkrjKxmLKz0ZNzUjdCIZwsrBtEXh9GuA7EQhF9pywdQhPEUiqkIyN1IA-EUBt3P1fsP10Yn10YrHmsPHbLP1c" target="_blank" class="baidu-highlight">margin-left</a>:-15px;}
body:
<div id="loading" style="visibility: hidden;">
<img src="images/wait.gif" width="33" alt="">
</div>