Internet Explorer 10中的水平下拉菜单无法正常显示 [英] Horizontal drop down menu doesn't display correctly in Internet Explorer 10

查看:458
本文介绍了Internet Explorer 10中的水平下拉菜单无法正常显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网站上的水平下拉菜单有问题: http://zoztargowek.waw.pl 而且我真的不知道如何让它在 Internet Explorer 10 上工作。

I have a problem with the horizontal drop down menu on my site: http://zoztargowek.waw.pl and I really don't know how to get it work on Internet Explorer 10.

它在IE 9和所有其他浏览器上工作正常,但在升级到 IE 10 之后,它停止工作。当您将鼠标悬停在菜单项目

It worked fine on IE 9 and all other browsers, but after I upgraded to IE 10 it stopped working. Now when you hover over a menu item e.g. Promocja zdrowia the drop down menu items won't show.

推荐答案

由于您尚未设置一种doctype,浏览器将以Quirks模式而不是标准模式运行。你突然看到IE10的一个问题的原因是因为他们改变了他们的默认怪癖模式的工作原理。您有两个选项:

Since you haven't set a doctype, browsers will be operating in Quirks mode instead of Standards mode. The reason you are suddenly seeing an issue with IE10 is because they have changed the way their default quirks mode works. You have two options:

选项1:

在您的文档的顶部,例如<!DOCTYPE html> ,然后浏览所有的CSS和HTML,以确保它正确显示。

Add a doctype at the top of your document, such as <!DOCTYPE html> and then go through all of your css and html to make sure it is appearing correctly.

选项2:

您可以采取捷径,强制IE显示在右侧通过添加这个元标记来确定怪癖模式< meta http-equiv =X-UA-Compatiblecontent =IE = 5>

http:/ /blogs.msdn.com/b/ie/archive/2011/12/14/interoperable-html5-quirks-mode-in-ie10.aspx

You can take the short cut which is to force IE to show in the right quirks mode by adding this meta tag <meta http-equiv="X-UA-Compatible" content="IE=5">
http://blogs.msdn.com/b/ie/archive/2011/12/14/interoperable-html5-quirks-mode-in-ie10.aspx

这篇关于Internet Explorer 10中的水平下拉菜单无法正常显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆