问题描述
我有一个母版页Root.master和页面Default.aspx的。我想,直到整个Default.aspx页面加载显示进度条。
I have a master page Root.master and a page default.aspx . I want to display progress bar until whole default.aspx page is loaded .
我试过以下code: -
I tried following code:-
<html>
<head><title>xx</title>
</head>
<body style="visibility:hidden;" onload="function(){document.body.visibility='visible'}">
<img src="xxxx.gif" style="visibility:visible !important">
</body>
</html>
但问题是,我没有身体上的default.aspx,它是root.master,如果我们把它放在root.master,将其应用从root.master继承所有页面。
因此,有另外一个为它
But problem is that I do not have body on default.aspx , it is on root.master , if we put it on root.master, it apply all pages which inherit from root.master .So there is another for it .
请给我建议的可用链路或样品。
Please suggest me usable link or samples.
推荐答案
你的样品中,如果你使用jQuery,您可以使用下面的重构你的code
in your sample if you are using jQuery, you can use following re-factoring to your code
$(document).load(function(){
$('body').css('visibility','visible');
}
。既然这是一个第三方的教程中,我不打算复制内容到这里。
this tutorial might helpful to you for create custom progress bar.since this is a third party tutorial, i'm not going to copy content to here.
这篇关于如何显示进度条,直到整个aspx页面加载是?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!