可能重复:
Passing mouse clicks through an overlaying element
可以在没有javascript的情况下点击红色方块下面的链接吗?红色的div不需要是可点击的。
http://jsfiddle.net/efortis/LNwHV/
#bottom{
width: 100px;
height: 100px;
background-color: orange;
}
#top{
width: 50px;
height: 50px;
position: absolute;
left:0;
top:0;
background-color: rgba(255,0,0,.5);
}
https://stackoverflow.com/questions/6740242
复制相似问题