【问题标题】:Website appearing and then disappearing in IE9网站在IE9中出现然后消失
【发布时间】:2017-02-19 23:02:28
【问题描述】:

我有一个奇怪的错误,它只发生在 IE9 中。网页很快显示然后消失。

链接在这里:http://test.islandprotravel.de/index.php

在控制台日志中我可以看到这条消息:

HTML1114:来自(UNICODE 字节顺序标记)的代码页 unicode 覆盖来自(UNICODE 字节顺序标记)的冲突代码页 utf-8

我仔细检查了字符集,它在 META 标记中设置为 utf-8:

<meta http-equiv="content-type" content="text/html; charset=utf-8">

<meta http-equiv="X-UA-Compatible" content="IE=edge">

对我来说,IE9 似乎出于某种奇怪的原因切换到 Quirks 模式。 html代码有效,网站支持IE11、FF、Chrome、Safari

有人知道如何解决这个问题吗?

非常感谢

哈拉尔

【问题讨论】:

    标签: internet-explorer-9


    【解决方案1】:

    This file 似乎在某些特殊情况下(可能适用于 IE9)第 37 行进行了 document.write。

    document.write 如果在 DOM 加载完成后覆盖网页的内容,那就是问题所在。

    【讨论】:

    • 谢谢,这似乎是解决方案。我使用 defer async 来调用这个 webstat 工具的 js。我删除了它,现在它可以正常工作了。
    猜你喜欢
    • 2023-03-20
    • 1970-01-01
    • 2019-10-17
    • 1970-01-01
    • 2020-07-30
    • 2016-01-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多