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