【问题标题】:How do I put the vertical text Advertisement to the right of AdSense Ads?如何将垂直文本广告放在 AdSense 广告的右侧?
【发布时间】:2018-01-31 21:46:12
【问题描述】:

来自 Google Adsense,https://support.google.com/adsense/answer/4533986?hl=en

标记广告

对于如何标记 AdSense 广告单元,发布商有两种选择:您可以使用“广告”或“赞助商链接”来标记这些单元。目前不允许其他变体。

如何为此创建 CSS?

【问题讨论】:

    标签: css adsense vertical-text


    【解决方案1】:

    这个解决方案对我有用。有没有人发现问题或提供更好的解决方案?

    对于横向广告,使用 div 包裹您的广告

    <div class="adHorizontal">
    

    并使用这个 CSS:

    div.adHorizontal ins.adsbygoogle:before {
    content: 'Advertisement';
    position: relative;
    top: 15px;
    color: #888;
    font-size: .75rem;
    -webkit-transform: rotate(270deg);
    transform: rotate(270deg);
    transform-origin: right top 0;
    float:right;}
    

    【讨论】:

      猜你喜欢
      • 2020-05-26
      • 1970-01-01
      • 2020-02-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-09-19
      • 1970-01-01
      相关资源
      最近更新 更多