IE6兼容性。页面在任何地方都可以正常工作,但在 IE6 中除外

发布于 2024-12-06 18:24:27 字数 1003 浏览 0 评论 0原文

我对网站的所有页面都有几乎相同的标记,其中大多数都是通过 php include 完成的(换句话说,所有页面中最大的代码块都是相同的)。

除了一个页面(动态生成的)之外的所有页面都可以在包括 ie6 在内的所有浏览器中按预期工作。

一页(例如,http://mincovlaw.com/doc/euro-excellence)在 FF3.6、Chrome、Safari(包括 iPhone)和 IE7 中按预期工作。

在 IE6 中,

似乎存在一些问题。我认为这与浮动菜单有关,但即使我完全删除代码,DIV 仍然无法正确显示。

如果您在 IE6 中单击“关于”或网站的几乎任何其他页面,相同的 DIV 结构都可以正常工作。

我确实希望该网站能够在 IE6 中运行。请帮我弄清楚为什么它在这个页面上表现得像这样。

为了让事情更清楚,我在 IE6 中提到的三个问题是:

  1. 浮动书签菜单最终出现在“纸张”的右上角,而不是像它应该出现的那样出现在窗口的右上角。

  2. 因此,当我拖动书签菜单时,坐标都搞乱了。

  3. 例如,如果将此页面与 IE6 中的“服务”进行比较,您会发现在“服务”页面上,中间、顶部和底部的纸张宽度相同,而顶部稍宽一些。我为您提供了链接的法院判决页面。

PS我知道代码在验证方面有很多问题,其中大部分与ul没有相应的li有关。目前这是设计使然。

重要更新!!!我刚刚发现了一些东西。看来问题 #3 在某种程度上与 css 中的两行有关,即:

text-align:justify; 

for p.indented

有人能告诉我为什么会发生这种情况吗?

I have pretty much the same markup for all pages of the website, and most of them are done via php includes (in other words, the largest chunk of the code is the same throughout all pages).

All pages but one (dynamically generated) work as intended in all browsers including ie6.

The one page (for example, http://mincovlaw.com/doc/euro-excellence) works as intended in FF3.6, Chrome, Safari (including on iPhone) and IE7.

In IE6, it seems that there is some problem with the <DIV>s. I thought it had to do with the floating menu, but even if I remove the code completely, the DIVs are still not displayed correctly.

If you click on About or pretty much any other page of the website in IE6, the same structure of the DIVs works fine.

I do want the website to work in IE6. Please help me figure out why it behaves like this on this page.

To make things clearer, the three problems I am referring to in IE6 are:

  1. The floating Bookmarks menu ends up in the right hand corner of the "paper", not in the right hand corner of the window, as it should.

  2. Consequently, when I drag the bookmarks menu, the coordinates are all screwed up.

  3. If you compare the page to, for example, Services in IE6, you will notice that on the Services page, the paper width is the same in the middle and on top and on the bottom, whereas it is slightly wider on the court decision page that I gave you the link for.

PS I know the code has many problems with validation, most of which have to do with ul's not having corresponding li's. This is currently by design.

IMPORTANT UPDATE!!! I have just discovered something. It seems that the problem #3 somehow is related to two lines in the css, namely:

text-align:justify; 

for p and .indented

Can someone tell me why this is happening?

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

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

发布评论

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

评论(1

高跟鞋的旋律 2024-12-13 18:24:27

您应该使用 HTML 验证服务验证您的页面

验证有很多抱怨的事情。有些事情不应该成为问题,例如像 centeru 这样的过时标签,以及服务尝试验证 Javascript 代码时出现的问题,但在代码,例如一些未闭合的 ul 标签,以及包含 p 元素而不是 li 元素的 ul 标签。

You should use the HTML validation service to validate your page.

There are plenty of things that the validation complains about. Some things should not be a problem, like obsolete tags like center and u, and problems when the service tries to validate the Javascript code, but there are some actual errors in the code, like some ul tags that are not closed, and ul tags that contain p elements instead of li elements.

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