12 internet-explorer titlebar hang
当我访问我的页面时,标题已正确加载,但一秒后,它将更改为"等待http://example.com ".
页面加载,但即使加载了所有内容后,标题仍然继续,但仅在IE选项卡中,因为在托盘中标题是应该的.
PS:Chrome不会发生这种情况.IE版本是10
问题的图像:

我的HTML代码:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/favicon.ico" />
<title>DataTables Editor example</title>
<style class="include" type="text/css">
@import "support/bootstrap/css/bootstrap.css";
@import "support/bootstrap/dataTables/dataTables.bootstrap.css";
@import "css/customTable.css";
</style>
<script class="include" type="text/javascript" charset="utf-8" src="../../../media/js/jquery.js"></script>
<script class="include" type="text/javascript" charset="utf-8" src="../../../media/js/jquery.dataTables.js"></script>
<script class="include" type="text/javascript" charset="utf-8" src="../../TableTools/media/js/TableTools.js"></script>
<script class="include" type="text/javascript" charset="utf-8" src="../../TableTools/media/js/ZeroClipboard.js"></script>
<script class="include" type="text/javascript" charset="utf-8" src="../media/js/dataTables.editor.js"></script>
<script class="include" type="text/javascript" charset="utf-8" src="support/bootstrap/js/bootstrap.js"></script>
<script class="include" type="text/javascript" charset="utf-8" src="support/bootstrap/dataTables/dataTables.bootstrap.js"></script>
<script class="include" type="text/javascript" charset="utf-8" src="support/bootstrap/dataTables/dataTables.editor.bootstrap.js"></script>
<script class="include" type="text/javascript" charset="utf-8" src="./js/custom.js"></script>
</head>
<body class="c_body">
<div class="mContainer">
<div id="dt_div">
<table class="table table-striped table-bordered display" id="example">
<thead>
<tr>
<th style="text-align: center;">Data</th>
<th style="text-align: center;">Tema</th>
<th style="text-align: center;">Vínculo</th>
<th style="text-align: center;">Empresa</th>
<th style="text-align: center;">Sub contratada</th>
<th style="text-align: center;">NDP</th>
<th style="text-align: center;">CH</th>
<th style="text-align: center;">HHT</th>
<th style="text-align: center;">Gerência</th>
<th style="text-align: center;">Área Solicitante</th>
<th style="text-align: center;">CC</th>
<th style="text-align: center;">Rateio</th>
</tr>
</thead>
</table>
</div>
<div class="spacer"></div>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
小智 9
微软已经承认这个问题是IE10中的一个错误.该问题已关闭,状态为"无法修复". https://connect.microsoft.com/IE/feedback/details/787208/ie10-waiting-for-domains-url-text-occasionally-gets-stuck-on-tabs-title-only-after-refreshing-it
它也是IE11中的已知错误.
奇怪的是,我似乎设法修复ie8而没有明显对Firefox或Chrome造成任何损害,在JavaScript中使用它
<script language="javascript">
window.onfocus = function(){
var title_var = document.title;
document.title = title_var;
}
</script>
Run Code Online (Sandbox Code Playgroud)
正如Charly H建议的onload也可以使用
<script language="javascript">
window.onload = function(){
var title_var = document.title;
document.title = title_var;
}
</script>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4095 次 |
| 最近记录: |