0
我使用OUIBounce(https://github.com/carlsednaoui/ouibounce)退出弹出窗口。模式POPUP和AdSense CSS溢出问题
当它触发时,如果在弹出窗口下有AdSense广告单元,则AdSense 100%可见,而网站的其他部分呈灰色。
请帮我解决这个问题。
这里是底层CSS
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
background-color: rgba(0,0,0,0.5);
cursor: pointer;
-webkit-animation: fadein 0.5s;
animation: fadein 0.5s;
截图:
注意,所有内容都是灰色的,而AdSense广告单元是可见的。
你怎么知道'100'会有帮助吗? – dakab 2015-11-18 17:16:22
是的你是对的,我不是100%确定它的工作原理。它在2个不同的网站上为我工作。也许需要一个更普遍的方法。也许我的回答可以帮助某人。你认为这样更好:'$(“body *”).css({“z-index”:“0!important”}); (“#ouibounce-modal”)。css({“z-index”:“100”});'? – 2015-11-18 18:31:39