我无法让图像的不透明度在 Chrome 中工作。一旦我将鼠标悬停在图像上,图像就会消失。我已经在互联网上搜索过,但找不到任何有效的方法。不透明度适用于 <input>
标签,但不会使用 <img>
标签。我已经试过了 position: relative;
它在所有其他浏览器中工作得很好... http://jsfiddle.net/nx2bcpdu/提前致谢!
最佳答案
这是因为您正在调用 content: attr(title);
这会在悬停时破坏图像:
关于html - 将鼠标悬停在 Chrome 中的图片上时,图片会消失,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27789005/