简体   繁体   English

什么坏了? IE和Firefox / Safari中的网站看起来非常不同

[英]What broke? Site looks very different in IE vs Firefox/Safari

was working perfectly earlier this week, and now in IE everything seems to be messed up. 本周早些时候运行良好,现在在IE中一切似乎都乱了。 Any ideas? 有任何想法吗?

Specifically testing in IE 7/8 在IE 7/8中进行专门测试

There's a stylesheet (http://www.currensee.com/css/blueprint/ie.css) being served to all versions of IE less than IE8 that's returning a 404. I'd bet that might be your culprit. 有一个样式表(http://www.currensee.com/css/blueprint/ie.css)提供给小于IE8的所有版本的IE(返回404)。我敢打赌,这可能是您的罪魁祸首。

This line of code: 这行代码:

<!--[if lt IE 8]><link rel="stylesheet" href="css/blueprint/ie.css" type="text/css" media="screen, projection"><![endif]--> 

is using a relative path from your page. 正在使用您页面的相对路径。

Looks like it should be pointing at: 看起来应该指向:

<!--[if lt IE 8]><link rel="stylesheet" href="/themes/currensee/css/blueprint/ie.css" type="text/css" media="screen, projection"><![endif]--> 

where the rest of your stylesheets live. 您的其余样式表所在的位置。

The problem is the comment on your first line. 问题是您第一行的评论。 IE looks for the doctype there and, if there is none, goes into quirks mode. IE在那寻找doctype,如果没有,则进入怪癖模式。 Remove that comment. 删除该评论。

btw, you are using the XHTML 1.1 doctype which is an XML application but serving it as HTML. 顺便说一句,您正在使用XHTML 1.1 doctype,它是XML应用程序,但将其作为HTML来使用。 If you must use XHTML, change it to the 1.0 doctype. 如果必须使用XHTML,请将其更改为1.0 doctype。 Not that it makes any difference since you aren't serving XHTML anyway. 但这并不是因为您不提供XHTML而有所不同。

I don't know whether it's the root of your problem, but your IE stylesheet 我不知道这是否是您问题的根源,但您的IE样式表

http://www.currensee.com/css/blueprint/ie.css

doesn't exist. 不存在。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM