IE8:Div悬停仅在设置背景颜色时有效,非常奇怪,为什么?
Situation: Got a div with buttons images. Div needs to fadeIn on hover. Works in all browsers, except Internet Explorer. When I give the div a background color it suddenly works.
情况:得到按钮图像的div。 Div需要在悬停时淡入淡出。适用于所有浏览器,Internet Explorer除外。当我给div一个背景色时,它突然起作用。
Check: http://ListAndPlay.com , top left are the controls.
检查:http://ListAndPlay.com,左上角是控件。
The hover won't work in IE, try to add a background color to #buttons and it suddenly works.
悬停在IE中不起作用,尝试向#buttons添加背景颜色,它突然起作用。
Question: What is the reason for this? How to fix this properly?
问题:这是什么原因?如何正确解决这个问题?
8 个解决方案
#1
26
I recently ran in to this problem also. I also solved it by adding a 1 by 1 px transparent background image to the hover element. I felt like taking a shower afterwards.
我最近也遇到了这个问题。我还通过将1 x 1 xx透明背景图像添加到悬停元素来解决它。之后我想洗个澡。
更多相关文章
- 如何在网站中找到未使用的图像和CSS样式?
- 如何在CSS中添加旋转图像?
- body和html到底有多高&&浏览器的背景色问题
- 关于大背景图片随浏览器百分比缩放的问题
- 如何在离子框架中显示图像标题?
- 将图像从本地上传到tinyMCE
- 嵌入的图像在签名中不显示。
- 我似乎无法正确对齐这些图像
- 如何使用CSS精灵重复背景图像?