简体   繁体   English

将div放在其上时,链接不起作用

[英]Link doesn't work when placing a div on top of it

I've the following situation and need help (HTML/CSS/JS related) 我有以下情况需要帮助(HTML / CSS / JS相关)

I have a div with an image in it (takes the all div space) that when you mouseover it, another div with an image is displayed on top of that (the 2nd div is half transparent). 我有一个带有图像的div(占据所有div空间),当你鼠标悬停它时,另一个带有图像的div显示在其上面(第二个div是半透明的)。 The bottom image has a link. 底部图像有一个链接。 This link doesn't work because of the new half transparent div on top of it. 此链接不起作用,因为它上面有新的半透明div。

How can I make the link work? 如何使链接工作?

Thanks! 谢谢!

您需要为顶部图像指定相同的链接。

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

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