开发者

Why can't I click on this link with a nested image in IE7?

开发者 https://www.devze.com 2022-12-20 20:43 出处:网络
Open the following page in IE7 and try clicking on the image within the category boxes: http://www.southwestmedical.com/cat开发者_运维技巧egory/Diagnostic-Products/354

Open the following page in IE7 and try clicking on the image within the category boxes:

http://www.southwestmedical.com/cat开发者_运维技巧egory/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?


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.


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 a float: left as well might help, and should cause no change in layout.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号