开发者

Link on z-indexed div not a link?

I have a div behind the main div. Sometimes it appears and sometimes it's occluded, and that's fine. But the link on that z-indexed div isn't showing up as a link. Which is to say, the browser doesn't turn the cursor to a pointer; and when you click on it, it doesn't request the href d开发者_运维问答ocument.

Is there any way to keep the div so that it gets occluded when the browser is resized, but still gives us the link?


OK, I found the problem.

I was using negative z-index values, which puts the div behind the body and is therefore unreachable. When I used the same relative values for main div and background div, but made them positive, it all worked.

Hope this helps someone else.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜