簡體   English   中英

不允許使用Z-INDEX在另一個div下方單擊一個div在IE上不起作用

[英]Not to allow clicking on a div just below another div using Z-INDEX does not work on IE

我的HTML中有2個div,如下所示。 .show div位於.hide div的頂部。

我希望不能進行操作(我的意思是.hide div中的Dojo Tree小部件不應該觸發(如mouseover和mouseout之類的不同事件)。 我的目標是使用Z-Index屬性禁用Dojo Tree小部件。 這似乎可以在Chrome和Firefox上正常運行,但不能在IE(我擁有最新版本)上運行。 我無法在chrome和Firefox中單擊窗口小部件(這是我想要的)。但是IE仍然允許我使用該窗口小部件進行操作,盡管它上面有一個div。

我確實嘗試過eventlistener方法來解決此問題,但沒有幫助。

<div>
    <div class="show" style="position:absolute;z-index:1000;width:200px;height:200px;"> 
        <!--This div is empty-->
    </div>
    <div class="hide" style="height:200px;height:200px">   
        <div id="Testing" dojoType="camiant.form.SingleCheckBoxTree"
                        store="store"></div>
    </div>
</div>

任何幫助將不勝感激。非常感謝...

為什么不使用css屬性display:none呢?

代碼:

<div class="hide" style="height: 200px; height: 200px; display: none;">   
    <div id="Testing" dojoType="camiant.form.SingleCheckBoxTree" store="store"></div>
</div>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM