【问题标题】:Overlap Google Adsense on image在图片上重叠 Google Adsense
【发布时间】:2013-03-22 05:30:55
【问题描述】:

我会将 google adsense 消息重叠到图像上。

我正在使用 Twitter Bootstrap

<div id="row">
   <div id="span12">
   <img src="xxxxx"/ id="myimage"/>
   <div id="googleadsense">google adsense code
   </div>
<div>

【问题讨论】:

    标签: html css image twitter-bootstrap adsense


    【解决方案1】:

    我认为您应该能够通过将背景图像应用到您的 span12 div 然后定位 google adsense div 来做到这一点

    HTML

    <div id="row">
    <div id="span12 myimage">
    <div id="googleadsense">google adsense code </div>
    </div>
    <div>
    

    CSS

    .myimage{
    position:relative: /* set so we can position the adsense child */
    min-height:...;
    background:#fff url('path/to/background-image.jpg') no-repeat left top;
    }  
    
    .googleadsense{
    position:absolute:
    top:0;
    right:0;
    }
    

    祝你好运!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-04-05
      • 2023-03-12
      相关资源
      最近更新 更多