jquery鼠标点击穿透的解决方法

<pre>
<div class="showcontainer" style="background:#000;display: block;">
<div class="dd" style="width:20%;height:3rem;background:#F00; position: absolute;left:20%;top:10%;">
<div class="ddd" style="width:100%;height:100%;position: absolute;left:0px;top:0px;background:#FF0"></div>
<div class="ss" style="width:20%;height:2rem;background:#0F0;position: absolute;left:20%;top:10%;">

</div>
</div>
</div>
</pre>
<pre>
$('.dd').on(START_EV, function() {
alert('dd')
})
$('.ss').on(START_EV, function() {

return false;
})
</pre>

点击了ss就阻止后面的代码运行了 因为穿透也是按照顺序运行的

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-11
  • 2022-12-23
  • 2021-11-05
  • 2021-11-14
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-26
  • 2021-12-29
  • 2021-05-23
  • 2021-08-06
相关资源
相似解决方案