下拉菜单在IE9中不起作用 [英] Drop down menu doesn't work in IE9

查看:179
本文介绍了下拉菜单在IE9中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

http://www.streetstyles4all.co.uk/test4.html

任何人都可以请指教。我现在已经完成了菜单,除了IE9以外,它在大多数浏览器中都有效。菜单本身工作,但下拉没有。 GENERAL和SHOP菜单项应该下拉并显示许多其他子菜单项。只是不是在IE9: - (

Can anyone please advise. I have finished my menu now and it works in most browsers apart from IE9. The menu itself works but the drop down doesn't. The GENERAL and SHOP menu items should drop down and reveal many other sub menu items. Just not in IE9 :-(

任何人都可以帮助?

有问题的页面是 http://www.streetstyles4all.co.uk/test4.html

推荐答案

如果您从以下规则中删除过滤器属性:

If you remove the filter property from the following rules:

#menu
#menu li:hover

然后显示为IE9固定。

then the display is fixed for IE9.

https: //stackoverflow.com/a/6901105/637889 解释说,您应该使用IE8 +的 -ms-filter (尽管显然过滤器在IE9中仍然支持渐变效果)另请参阅 http://blogs.msdn.com/b/ie/archive/2008/09/08/microsoft-css-vendor-extensions.aspx 为较新的语法(作为属性v所以需要引用)。

https://stackoverflow.com/a/6901105/637889 explains that you should probably be using -ms-filter for IE8+ (although clearly filter is still supported in IE9 as the gradient is working). Also see http://blogs.msdn.com/b/ie/archive/2008/09/08/microsoft-css-vendor-extensions.aspx for the newer syntax (as property values need quoting).

作为一种替代方案,您可能希望在 IE9渐变使用-ms ,如果您还没有看到它,可以使用更多的跨浏览器渐变解决方案。

As an alternative you may want to explore the answers on IE9 Gradient using -ms for a more cross browser gradient solution, if you have not already seen it.

最后,可能我还建议保罗·爱尔兰的做法,使用条件注释以包含有问题的CSS规则(即IE)浏览器,而不会使有问题的浏览器。

Lastly, may I also recommend Paul Irish's approach using Conditional Comments to including CSS rules for problematic (i.e. IE) browsers without cluttering the less problematic browsers.

这篇关于下拉菜单在IE9中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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