打开页面时出现问题,我需要在打开页面之前打开加载图像,我该怎么做
<style>
#dvLoading
{
background:#000 url(images/ajax-loading.gif) no-repeat center center;
height: 100px;
width: 100px;
position: fixed;
z-index: 1000;
left: 50%;
top: 50%;
margin: -25px 0 0 -25px;
}
</style>
$(window).load(function(){
$('#dvLoading').fadeOut(2000);
});