且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法向splitcontainer中的窗口添加事件

更新时间:2023-12-06 10:07:10

如果子元素的''z-index与父元素相同,则子元素到达事件。或者父元素被禁用(无法点击)。

所以你可以尝试将window1的z-index设置为999999.

A child element is reach to an event if its'' z-index is the same as the parent one. Or the parent element is disabled(cannot click).
So you can try to set z-index of the "window1" to 999999.
document.getElementById('window1').style.zIndex = 999999;