为什么我无法在 IE7 中单击此带有嵌套图像的链接?
在 IE7 中打开以下页面,然后尝试单击类别框中的图像:
http:// /www.southwestmedical.com/category/Diagnostic-Products/354
据我所知,我没有做 (X)HTML/CSS 范围之外的任何事情,为什么我无法单击这些?
Open the following page in IE7 and try clicking on the image within the category boxes:
http://www.southwestmedical.com/category/Diagnostic-Products/354
As far as I can tell, I'm not doing anything outside of the scope of (X)HTML/CSS, why am I not able to click these?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
问题在于图像周围范围内的
display: block
。删除它并调整样式以使其看起来相同,现在一切都很好。The problem was the
display: block
on the span surrounding the img. Removed that and tweaked the styles to make it look the same and all is good now.这似乎是一个已知现象:
IE 图像链接修复
IE7-/Win:链接中的图像不可点击(由 hasLayout 引起)
给
img
一个float: left
也可能有帮助,并且不会导致布局发生变化。This seems to be a known phenomenon:
IE Image Link Fix
IE7-/Win: Not clickable image in a link (caused by hasLayout)
giving the
img
afloat: left
as well might help, and should cause no change in layout.