javascript - 如何让comodo弹出窗口覆盖其他元素?

标签 javascript jquery html css

我有一个 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&amp;&amp;s.handlers,h=H&amp;&amp;H[i],w=this.contentWindow,d;try{d=w.document}catch(e){}if(h&amp;&amp;d&amp;&amp;(!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/

相关文章:

javascript - 本地存储中的重复条目 - Javascript

javascript - 奇怪的 ParseFloat 问题 Javascript

javascript - 将哈希值从 URL 传递到具有延迟的函数

javascript - jQuery 从另一个类中查找

jquery - 模式对话框 Jquery-UI 中的日期选择器

html - 带有 CSS 梯形形状按钮的阴影

css - 将 div 框定位在后续元素的末尾

javascript - Chrome 开发者工具 : Failed to parse CPU profile

Javascript 在另一个函数执行后调用函数

javascript - DynamoDB 中使用 BETWEEN 比较运算符的 ScanFilter