【问题标题】:Align google ad code on my blog在我的博客上对齐谷歌广告代码
【发布时间】:2013-10-03 03:15:57
【问题描述】:

我在徽标旁边有我想要的这个 google 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/

谢谢

【问题讨论】:

  • #logo,添加margin-right: 25px;

标签: html css adsense


【解决方案1】:

只需将 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..?

结果:

【讨论】:

  • iframe 是什么意思?我只是添加了 google adsense 给你的代码。我不是开发人员,所以在我的 wordpress 主题标题中实现有点麻烦。
  • @ToddFoster 这就是我所说的 iframe i.stack.imgur.com/KD9cd.png
  • 我不知道,这是来自主题森林的主题,我所做的只是在其中添加了 google adsense、alexa 和分析代码。
  • 好吧,很确定它只是由 Google 动态生成的。很高兴它成功了,如果您有任何其他问题,请告诉我
  • 我猜是生成的广告?我不确定,一定和google有关。
猜你喜欢
  • 2015-07-29
  • 1970-01-01
  • 2011-10-16
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-02-01
  • 2019-06-03
相关资源
最近更新 更多