通过代码定义广告大小能更好展示广告页面。
以上转自:谷歌广告联盟微信号
本站所用代码:
通过代码定义一个展示区域,然后添加谷歌广告的自动代码。
目前缺点谷歌自动代码的广告还是会出现展示不全边框的情况。
<div id="float" class="float">
<section id="custom_html-4" class="widget_text widget widget_custom_html">
<div style="text-align:center;margin-top:5px;width:300px;height:350px;"> <a href="http://cpuck.com/ly" target="_blank" title=" ─=≡Σ((( つ•̀ω•́)つ "><img class="img" src="http://cpuck.com/wxm/img/tc.png"
width="300px" alt=""/></a>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- 右侧边栏广告 -->
<ins class="adsbygoogle"
style="display:inline-block;width:300px;height:250px"
data-ad-client="ca-pub-000000000000000"
data-ad-slot="6911755148"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
链接:右侧浮动广告代码
链接:自定义网页元素显示尺寸