IE6 悬停问题 [英] IE6 Hover Issue

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

问题描述

CSS :hover 在 IE6 中不适用于非链接元素.有解决方法吗?例如如何将 :hover 应用到 div?

The CSS :hover doesn't work in IE6 for elements that are not links. Is there a workaround? e.g. how do I apply the :hover to a div?

推荐答案

whatever:hover.我自己从未使用过它,但据我所知,它运行良好.

There's whatever:hover. I've never used it myself but from what I hear, it works well.

Whatever:hover 是一个小脚本,它可以自动修补 :hover、:active 和 :focus 的 IE6、IE7 和 IE8 怪癖,让您可以像在任何其他浏览器中一样使用它们.版本 3 引入了 ajax 支持,这意味着通过 javascript 插入到文档中的任何 html 也将触发 IE 中的 :hover、:active 和 :focus 样式.

Whatever:hover is a small script that automatically patches :hover, :active and :focus for IE6, IE7 and IE8 quirks, letting you use them like you would in any other browser. Version 3 introduces ajax support, meaning that any html that gets inserted into the document via javascript will also trigger :hover, :active and :focus styles in IE.

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

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