惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

小众软件
小众软件
V
Visual Studio Blog
博客园 - 三生石上(FineUI控件)
Last Week in AI
Last Week in AI
Blog — PlanetScale
Blog — PlanetScale
爱范儿
爱范儿
J
Java Code Geeks
A
About on SuperTechFans
F
Fortinet All Blogs
B
Blog
aimingoo的专栏
aimingoo的专栏
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Engineering at Meta
Engineering at Meta
Y
Y Combinator Blog
有赞技术团队
有赞技术团队
G
Google Developers Blog
Apple Machine Learning Research
Apple Machine Learning Research
V
V2EX
博客园_首页
博客园 - 叶小钗
罗磊的独立博客
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
D
Docker
云风的 BLOG
云风的 BLOG

博客园 - Mamboer

html5文件上传-iis7报奇怪的404(NotFound)错误 Windows Command Line Find and replace - Made easy with FART.exe Editplus-关联yuicompressor进行JS和CSS的压缩 ubuntu-安装aptana3 Ubuntu-环境配置文件 Ubuntu安装Git客户端 Ubuntu安装Chrome最新版 ubuntu-restricted-extras 高效率编辑器VIM-操作篇 Ubuntu安装雅黑字体 试用Opera11.10 build2053 版本的speed dial功能 Building Vim on Ubuntu Ubuntu安装Mercurial utf-8格式之no bom和+bom [PM]-组织者角色 IE6问题Q&A,你懂的... Logo一个-小凡设计 正则表达式-用户名规则之只含汉字、数字、字母、下划线 如何bin部署sqlce4.0的ASP.NET mvc3网站
[IE6]IE6:hover失效
Mamboer · 2012-07-19 · via 博客园 - Mamboer

大家都知道IE6之支持<a>标签的:hover行为了,但是通常在做实际效果的时候<a>标签 :hoverIE6下会失效,

失效一般发生在你想通过hover切换a标签内部子标签样式的时候。

看例子:

<html>
<head>
<title>无标题文档</title>
<style type="text/css">
    a:hover { }
    a:hover span{color:#F00;}
</style>
</head>

<body>

<a href="#">鼠标经过时改变我的<span>颜色</span></a>

</body>

</html>

IE6下“颜色”根本就不会变成红色,其他浏览器都是好的,要解决这个问题就必须触发a:hoverlayout,例如a:hover { display:inline-block}或者a:hover { _zoom:1}