Horizontal drop down menu doesn't display correctly in Internet Explorer 10

耗尽温柔 提交于 2019-12-22 09:15:42

问题


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.

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.


回答1:


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:

Option 1:

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.

Option 2:

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



来源:https://stackoverflow.com/questions/15108578/horizontal-drop-down-menu-doesnt-display-correctly-in-internet-explorer-10

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!