【发布时间】:2025-12-01 09:20:06
【问题描述】:
可能重复:
Passing mouse clicks through an overlaying element <div>
是否可以在没有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);
}
【问题讨论】: