将图像设为页面加载 [英] Make a image as page load
本文介绍了将图像设为页面加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图将图像作为页面加载,即直到html完全呈现我将显示加载图像,比如gif图像。因此,在页面未完全呈现之前,用户必须无法单击页面上的任何内容。为了做到这一点,我必须在整个页面上显示图像吗?那么我怎么能解决这个问题呢。任何人都可以帮助我。
我在Angular JS中这样做,问题是渲染时间延迟而不是数据提取。
Hi,
I am trying to make an image as page load, i.e till the html is fully rendered i will show a loading image, say a gif image. So till the the page is not fully rendered, the user must not be able to click anything on the page. In order to do that i must show the image over the entire page right? So how can i acieve this. Can any one please help me.
I am doing it in Angular JS and the problem is the time delay happens in rendering rather than data fetch.
推荐答案
没有插件,完成这项任务并非易事。我使用BlockUI来完成此任务: http://malsup.com/jquery/block/ [ ^ ]
Not a very easy task to accomplish without a plugin. I use BlockUI to accomplish this: http://malsup.com/jquery/block/[^]
这篇关于将图像设为页面加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文