我有一个 comodo 安全 Logo ,但悬停时弹出窗口出现在其他页面元素下方。我的 CSS 是:
a[onmouseout="tLpB('tl_popupCL1')"] {
position: fixed;
z-index: 99999;
width: 100px;
}
页面是here
comodo 安全 Logo 和行为都很好,只是我需要弹出窗口出现在顶部。如果需要,jscript 在下面。
<script language="JavaScript" type="text/javascript">TrustLogo("https://www.stakeholdermap.com/comodo_secure_seal_113x59_transp.png", "CL1", "none");</script><a href="https://ssl.comodo.com" id="comodoTL">SSL Certificates</a>
最佳答案
正如 Hunagism 在他的评论中所说,从您的 .eb2
div
中删除 overflow: hidden;
。然后,要让弹出窗口显示在广告上方,在此元素 (#aswift_0_anchor
) 中:
<ins id="aswift_0_anchor" style="display:block;border:none;height:280px;margin:0;padding:0;position:relative;visibility:visible;width:336px;background-color:transparent"><iframe width="336" height="280" frameborder="0" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no" allowfullscreen="true" onload="var i=this.id,s=window.google_iframe_oncopy,H=s&&s.handlers,h=H&&H[i],w=this.contentWindow,d;try{d=w.document}catch(e){}if(h&&d&&(!d.body||!d.body.firstChild)){if(h.call){setTimeout(h,0)}else if(h.match){try{h=s.upd(h,i)}catch(e){}w.location.replace(h)}}" id="aswift_0" name="aswift_0" style="left:0;position:absolute;top:0;width:336px;height:280px;"></iframe></ins>
添加z-index: -1;
关于javascript - 如何让comodo弹出窗口覆盖其他元素?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43981718/