IE6兼容性。页面在任何地方都可以正常工作,但在 IE6 中除外
我对网站的所有页面都有几乎相同的标记,其中大多数都是通过 php include 完成的(换句话说,所有页面中最大的代码块都是相同的)。
除了一个页面(动态生成的)之外的所有页面都可以在包括 ie6 在内的所有浏览器中按预期工作。
一页(例如,http://mincovlaw.com/doc/euro-excellence)在 FF3.6、Chrome、Safari(包括 iPhone)和 IE7 中按预期工作。
在 IE6 中,
如果您在 IE6 中单击“关于”或网站的几乎任何其他页面,相同的 DIV 结构都可以正常工作。
我确实希望该网站能够在 IE6 中运行。请帮我弄清楚为什么它在这个页面上表现得像这样。
为了让事情更清楚,我在 IE6 中提到的三个问题是:
浮动书签菜单最终出现在“纸张”的右上角,而不是像它应该出现的那样出现在窗口的右上角。
因此,当我拖动书签菜单时,坐标都搞乱了。
例如,如果将此页面与 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:
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.
Consequently, when I drag the bookmarks menu, the coordinates are all screwed up.
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该使用 HTML 验证服务来验证您的页面。
验证有很多抱怨的事情。有些事情不应该成为问题,例如像
center
和u
这样的过时标签,以及服务尝试验证 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
andu
, and problems when the service tries to validate the Javascript code, but there are some actual errors in the code, like someul
tags that are not closed, andul
tags that containp
elements instead ofli
elements.