0

我目前正在设计一个新的网站模板。我想到了使用点击导航菜单只是为了拥有一个很酷的功能(如果禁用了 javascript,它会退回)。

我从Toddmotto.com得到菜单。它在我检查我的网站的每个浏览器(Opera、Chrome、FF、Safari)中都能完美运行,然后我尝试了 IE,但它看起来几乎不一样。

我正在设计我的模板的网站在这里

任何关于为什么它被打破的帮助表示赞赏。

编辑:通过声明 doctype 并添加提供的元标记来修复,但现在我的包装器 div 中似乎有一个我在我的 css 中没有的间隙。

4

1 回答 1

0

HTML1200: webs.com is on the Internet Explorer Compatibility View List ('C:\Users\Kolink\AppData\Local\Microsoft\Internet Explorer\IECompatData\iecompatdata.xml').
index.htm

HTML1527: DOCTYPE expected. The shortest valid doctype is "<!DOCTYPE html>".
index.htm, line 1 character 1

The first problem can be fixed by adding this to your <head>:

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

The second can be fixed by adding <!DOCTYPE html> to the start of your page. Not having a doctype is something from last milennium...

于 2013-04-28T04:06:25.457 回答