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透明背景图像添加到悬停元素来解决它。之后我想洗个澡。

更多相关文章

  1. 如何在网站中找到未使用的图像和CSS样式?
  2. 如何在CSS中添加旋转图像?
  3. body和html到底有多高&&浏览器的背景色问题
  4. 关于大背景图片随浏览器百分比缩放的问题
  5. 如何在离子框架中显示图像标题?
  6. 将图像从本地上传到tinyMCE
  7. 嵌入的图像在签名中不显示。
  8. 我似乎无法正确对齐这些图像
  9. 如何使用CSS精灵重复背景图像?

随机推荐

  1. 输入发与界面的调整
  2. Android AccessibilityService 应用之微
  3. Android Touch 事件的分发和消费机制
  4. (Android)react-native获得手机的Android版
  5. android 反转字符串
  6. Android学习笔记06-线性布局LinearLayout
  7. android画图---Layer
  8. ListView去掉分割线的几种方法
  9. 流媒体开发重要参考纪要
  10. Android 获取汉字拼音