图片在 IE 中不显示
我有一个带有图像链接的无序列表,当您将鼠标悬停在它们上方时,它们会淡出一点,这在除 IE 之外的每个浏览器中都显示良好,当然。起初我以为这只是一个 png 错误,但在应用这两个修复后,它仍然不起作用。该页面位于:
如果有人知道发生了什么事,请告诉我,因为我现在完全被难住了。谢谢
I have an unordered list with image links and when you hover over them they fade out a little bit and this shows all good in every browser except IE, of course. At first I thought it was just a png bug but after applying both of those fixes it still doesn't work. The page is at:
If anyone knows what is going on please let me know as I am completely stumped now. Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
它似乎适用于 IE7 和 IE9,但不适用于 IE8。有兴趣,以前没见过。
无论如何,您可以使用不同的方法来解决问题。不要使用列表,只需将图像(带有链接)放在包含的
中,然后将样式应用于链接,使它们具有
display: inline-block;< /code> - 这将允许您将它们彼此垂直对齐(
vertical-align: middle;
),并根据需要设置它们的宽度。It appears to work in IE7 and IE9, but not IE8. Interested, never seen that before.
Anyway, you can fix the problem by using a different method. Instead of using a list, just have your images (with links) inside the containing
<div>
, then apply a style to the links such that they havedisplay: inline-block;
- this will allow you to align them vertically with each other (vertical-align: middle;
) and set their width if you want.不透明度淡入淡出是通过 IE 不支持的样式实现的
The opacity fade is being achieved by styles that IE doesn't support
它适用于 IE9,因此首先猜测您正在使用一些早期版本不支持的 css 或 javascript。您需要发布代码,以便我们可以为您提供更好的指导来解决此问题。
It works in IE9 so first guess is you are using some css or javascript that isn't supported for earlier versions. You need to post the code so we can give you better guidance on how to resolve this.