李:在IE 8中悬停 [英] li:hover in IE 8

查看:53
本文介绍了李:在IE 8中悬停的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个带有下拉子菜单的导航菜单。这一切都很完美,但出于某种原因,它不再适用于Internet Explorer。我正在使用版本8,它应该支持我需要使用的伪类。

它仍然适用于Firefox,Safari,谷歌Chrome和Opera。


我尝试用我用于其他菜单的代码替换代码但它仍然无法工作。


任何人都可以帮助我,因为它真的是个谜?

展开 | 选择 | Wrap | 行号

解决方案

在IE中必须有声明的<!DOCTYPE> for:hover选择器用于处理除< a>之外的其他元素element。


我ALWYS有

展开 | 选择 | Wrap | 行号


在IE 8中可以正常使用

I''ve created a navigation menu with a drop down sub menu. It all worked perfectly but for some reason, it no longer works in Internet Explorer. I''m using version 8 which is supposed to support the pseudo-classes I need to use.
It still works in Firefox, Safari, Google Chrome and Opera.

I have tried replacing the code with the code I used for other menus and it still doesn''t work.

Can anyone help me because it really is a mystery?

Expand|Select|Wrap|Line Numbers

解决方案

In IE there must be a declared <!DOCTYPE> for the :hover selector to work on other elements than the <a> element.


I ALWYS have

Expand|Select|Wrap|Line Numbers


Works fine for me in IE 8.


这篇关于李:在IE 8中悬停的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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