在我的博客上对齐Google广告代码

时间:2013-09-26 23:27:17

标签: html css adsense

我有这个谷歌的adsense代码,我想在徽标旁边但是我该如何制作它以使它更加正确?

<div class="pad group">     
                <?php echo wpb_site_name(); ?>
                        <div >
            <script type="text/javascript"><!--
google_ad_client = "ca-pub-7548335119849446";
/* Techs Leaderboard */
google_ad_slot = "9543222930";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>       </div>
            </div>

如果您发现该网站与徽标

的差距不一致,则该网站为http://techsdiary.com/

谢谢

1 个答案:

答案 0 :(得分:2)

只需将HTML更改为:

<ins style="display:inline-table;border:none;height:90px;margin:0;padding:0;position:relative;visibility:visible;width:728px;float: right;">

添加float:right ..或者,您也可以将其添加到样式表中:

ins {
    float: right;
}

作为旁注,为什么iframe中的iframe中存在iframe ..?

结果:

enter image description here