目前我有三个画布通过z-index叠放在一起。
<canvas width="800" height="600" id="test3_canvas" style="position: absolute; left: 0; top: 0; z-index:2"></canvas>
<canvas width = "800" height="600" id="test2_canvas" style="position: absolute; left: 0; top: 0;z-index:1"></canvas>
<canvas width="800" height="600" id="test1_canvas" style="position: absolute; left:0; top: 0;z-index:0"></canvas>
但是只有顶层画布(z-index:2)似乎捕获了我设置的mousedown
/mouseup
/mousemove
事件。有没有办法确保其他图层也能捕获这些事件?