我有Flash游戏网站,我想在游戏左右两侧添加Google adsense
广告。我做得很好,但是我没能在右边做。我在div adss2
中尝试了所有内容,我尝试了正确的浮动等等,请帮助我
这是有效的代码,只有左侧广告
#adss {
float: left;
}
<div id="adss"><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- FBHG 160 x 600 Left & Right -->
<ins class="adsbygoogle"
style="display:inline-block;width:120px;height:600px"
data-ad-client="ca-pub-6986007787043433"
data-ad-slot="8913466265"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></div>
<div id="playgame">
<script type="text/javascript">
<!--
swf("<?php $values = get_post_custom_values("game"); echo $values[0]; ?>", "701", "550");//-->
</script>
</div>
<div class="gamecontent">
<h3><?php _e("How To Play", "freebabyhazelgames"); ?>:</h3>
<?php the_content('<p class="serif">Read the rest of this entry »</p>'); ?>
</div>
这就是广告的展示方式
这就是我想要它的方式
<div id="adss2"><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- FBHG 160 x 600 Left & Right -->
<ins class="adsbygoogle"
style="display:inline-block;width:120px;height:600px"
data-ad-client="ca-pub-6986007787043433"
data-ad-slot="8913466265"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></div>
以上是第二个HTML。
答案 0 :(得分:1)
使用此代码
<div id="adss"><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- FBHG 160 x 600 Left & Right -->
<ins class="adsbygoogle"
style="display:inline-block;width:120px;height:600px"
data-ad-client="ca-pub-6986007787043433"
data-ad-slot="8913466265"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></div><div id="adss2"><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- FBHG 160 x 600 Left & Right -->
<ins class="adsbygoogle"
style="display:inline-block;width:120px;height:600px"
data-ad-client="ca-pub-6986007787043433"
data-ad-slot="8913466265"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></div>
<div id="playgame">
<script type="text/javascript">
<!--
swf("<?php $values = get_post_custom_values("game"); echo $values[0]; ?>", "701", "550");//-->
</script>