简体   繁体   English

Click / MouseOver仅在图像的一部分上触发

[英]Click / MouseOver only being triggered on part of an image

http://redcode.bits2pieces.co.cc/mdm/#investment http://redcode.bits2pieces.co.cc/mdm/#investment

In the second row of images, the rollover effect is only being invoked when the cursor is moved over the top one-fifth if the image. 在图像的第二行中,仅当将光标移到图像的顶部五分之一上方时才调用翻转效果。 I'm facing the same problem if I move the event handler from the to the parent div. 如果将事件处理程序从移到父div,则我将面临相同的问题。

The rollover is working fine in the first row of images. 翻转在第一行图像中运行良好。

Any ideas? 有任何想法吗?

Thanks 谢谢

That's happening because your <div class="wrapper" ...> is overlaping second row. 发生这种情况是因为您的<div class =“ wrapper” ...>与第二行重叠。

wrapper http://office.gold.lv/tmp/wrapper.png . 包装器http://office.gold.lv/tmp/wrapper.png

It looks like your "wrapper" is covering the bottom half of the 2nd row of images. 看起来您的“包装器”覆盖了第二行图像的下半部分。

This div: 这个div:

<div class="wrapper" style="margin-top: 370px">

Try increasing the margin-top to at least 500px, that should move it out of the way. 尝试将页边距顶部增加到至少500像素,这样可以将其移开。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM