0

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

标记广告

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

如何为此创建 CSS?

4

1 回答 1

0

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

对于横向广告,使用 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;}
于 2018-01-31T13:46:12.410 回答