1

Alright, so I have some code, and I'd like to be able to click things under the div on top. For some reason, it isn't working, and I have no idea why. After extensive googling, I'm pretty sure I'm using pointer-events correctly, so if anyone could provide some insight into my problem, a million hugs.

    <html>
<head>
<style type="text/css">
#profilecontainer{
position:absolute;
top:0;
}
#topdiv{
background-image:url('http://img805.imageshack.us/img805/7227/profilek.png');
width:621;
height:365;
z-index:3!important;
pointer-events:none;
}
#content{
height:75;
width:571;
position:absolute;
clip:shape;
top:270;
left:25;
z-index:-2;
pointer-events:auto;
}
</style>
</head>
<div id="profilecontainer"><div id="content" class=""><a href=http://www.youtube.com/watch?v=9LlYs_s1494>Test clicker</a></div><div id="topdiv"></div></div>
</body>
</html>
4

1 に答える 1

1

&nbsp;他に表示されtopDivないので に追加。

次に の CSS に追加position: absolute;するtopDivと、正常に動作するはずです。

これに関する関連情報:

DIV をクリックして下にある要素に移動する

IE の回避策を使用することを忘れないでください。

于 2012-07-19T01:07:33.060 に答える