如何解决 Asp.net C# 中的页面加载闪烁问题


我们如何解决 Asp.net C# 中的页面加载闪烁问题。

XML
<meta http-equiv="Page-Enter" content="blendTrans(Duration=0)" />
    <meta http-equiv="Page-Exit" content="blendTrans(Duration=0)" />

当我编写上面的代码时,问题已在 IE 8 中解决
但在 mozilla Firefox(版本:23.0.1)中也有同样的问题。
闪烁问题没有解决。
请建议我。

解决方案1

你好,马希,

也许一个简单的选择是使用 JQuery 和 JQuery-UI。 下面的代码应该可以帮助您入门。

超文本标记语言
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
<meta name="author" content="Prasad P. Khandekar"/>
<meta name="owner" content="www.templatemo.com"/>
<meta name="copyright" content="www.templatemo.com"/>
<meta http-equiv="Expires" content="0"/>
<meta http-equiv="Pragma" content="no-cache"/>
<meta http-equiv="Cache-Control" content="no-cache"/>
<meta http-equiv="Pragma-directive" content="no-cache"/>
<meta http-equiv="cache-directive" content="no-cache"/>
<title>My Portal</title>
<meta name="keywords" content="intranet, support, issue tracking, doducmentation, tools, eclipse" />
<meta name="description" content="A support portal for developers" />
<link href="static/css/percent-column-system-min.css" rel="stylesheet" type="text/css" />
<link href="static/css/portal.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="static/js/jquery/jquery-2.0.3.min.js"></script>
<script type="text/javascript" src="static/js/jquery/jquery-ui-1.10.3.min.js"></script>
<script language="javascript" type="text/javascript">
$(document).ready(function() {
    $('#mainPage').fadeIn(1000);
});
</script>
</head>
<body style="display:none;" id="mainPage">
    <div id="templatemo_wrapper">
        <div id="templatemo_sidebar">
            <div id="site_title">
                <h1><a href="http://intranet.foo.com"><img src="static/images/templatemo_logo.png" alt="logo" />
                <strong>DEV</strong>PORTAL<span><i>Innovation</i>, <b>Bank on it.</b></span></a></h1>
            </div>

        </div>
    </div>
</body>
</html>

问候,

解决方案2

嗨普拉萨德
我需要将此代码放在 asp.net 页面的哪里?

コメント

タイトルとURLをコピーしました