网站在 IE6 中显示空白页面

发布于 2024-08-11 06:01:54 字数 397 浏览 10 评论 0原文

- 自从发现有关我的问题的更多信息后,我修改了我的问题

一位用户抱怨(在 XP 和使用 IE6 上)他们无法跟踪我网站上的任何链接。他们看到的行为是单击链接会显示空白页面,但不会更改浏览器地址栏中的 URL。此时按刷新即可正确显示页面,并在地址栏中显示正确的 URL。

所有锚点都是正确的,除了在所有我们最喜欢的浏览器中测试该网站之外,我还在 XP 上使用 IE6 亲自测试了该网站,并且没有问题

有谁对可能导致这种情况的原因有任何想法吗?也许是因为他们位于公司网络内? ——我不明白这会导致什么问题,但到目前为止我还是一无所获。

我正在使用 XHTML & PHP。标头被正确接收。我还确保完整的 PHP 错误报告已打开并且没有错误。

- Since discovering more about my problem I have modified my question

A single user is complaining that (on XP and using IE6) they're not able to follow any links around my site. The behaviour they're seeing is clicking a link shows a blank page, but doesn't change the url in the address bar of the browser. Pressing refresh at this point then displays the page correctly with the correct URL in the address bar.

All anchors are correct, and as well as testing the site in all our favourite browsers I have also tested the site myself on XP using IE6 and have no problems.

Has anyone any thoughts on what could be causing this? Perhaps it could be the fact they're within a company network for example? -- I don't see how that could cause a problem, but I am so far coming up empty.

I'm using XHTML & PHP. Headers are being received correctly. I've also ensured full PHP error reporting is on and there are no errors.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

笔落惊风雨 2024-08-18 06:01:54

标头应该单独工作(我认为它没有任何问题)。

然而 JavaScript 是错误的,因为 HTML 注释 不是有效的 JavaScript 指令,因此您得到的将是一个解析错误。您必须首先注释注释(例如 //)。

我希望至少修复解决方法有帮助!

The header should work alone (I see nothing wrong with it).

The JavaScript however is wrong since the HTML comments <!-- and --> aren't valid JavaScript instructions and so all you'll get will be a parse error. You must first comment the comments (like //<!-- and //-->).

I hope that at least fixing the workaround helps!

奶气 2024-08-18 06:01:54

此问题是由以下两个因素共同造成的。

  • 首先,用户位于其工作场所的代理(ISA 服务器)后面。

  • 其次,通过调试发现是HTML头中以下两个meta标签引起的。

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
<meta http-equiv="Content-Style-Type" content="text/css" />

基本上 IE 似乎一旦到达这两行就放弃了。查看源代码不起作用,因此无法直接看到它。

当这两个因素仅存在其中之一时,该网站运行良好,但当它们结合在一起时,就会导致问题。

因此,为了解决我的问题,我删除了这两行。现在该网站运行良好。

This problem was caused by a combination of the following two factors.

  • Firstly, the user was behind a proxy at their workplace (an ISA server).

  • Secondly, through debugging I found that the following two meta tags in the HTML head were the cause.

.

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
<meta http-equiv="Content-Style-Type" content="text/css" />

Basically IE appears to just give up once it reaches these two lines. Viewing source didn't work so it was not possible to see this directly.

The website worked fine when only either one of the two factors were present, but when combined they caused the problem.

So to solve my problem I removed these two lines. Now the site works fine.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文