我有这段代码:
<div class="c1">
//code that makes a div move downwards
</div>
<div class="banner">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle" style="display:inline-block;width:200px;height:200px;" ....>
</ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
<div class="banner">
<img src="...">
</div>
div应该是图像的顶部。但是,使用Google广告时,广告不会被覆盖。
如何将div置于Google广告之上?
答案 0 :(得分:2)
只需进行这些更改就可以了
<div class="c1" style="position:absolute;z-index:2147483647">
//code that makes a div move downwards
</div>