【问题标题】:Placing 2 adsense vertically with css用css垂直放置2个adsense
【发布时间】:2014-10-14 17:01:43
【问题描述】:

我正在尝试垂直放置 2 个 adsense 广告(即在彼此下方),但目前两个广告彼此相邻显示(水平)。有什么建议我哪里出错了吗?谢谢。

我的 HTML 代码是:

<div id="wrap" >
<div id="right-float1">

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Page_right_top_300x250_ad -->
<ins class="adsbygoogle"
     style="display:inline-block;width:300px;height:250px"
     <script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>

<div id="ad5-right-float">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Page_right_top_300x250_ad -->
<ins class="adsbygoogle"
     style="display:inline-block;width:300px;height:250px"
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</div>

我的 CSS:

#wrap {
position: relative;
min-width: 980px; 
margin: 0 auto; 

}

#right-float1 {
float: right;
position: relative;
min-height: 1000px;
}

# right-float2 {
float: right;
position: relative;

}

【问题讨论】:

    标签: html css css-float adsense


    【解决方案1】:
    #right-float2 
    {
       float: right;
       position: relative;
       clear:right;
    }
    

    试试这个。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-06-21
      • 2011-04-29
      • 2013-08-16
      • 2018-09-08
      • 1970-01-01
      • 2013-12-09
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多