Html 我想用谷歌adsense横幅在小屏幕上调整我的段落
我正试图用谷歌横幅调整我的小屏幕内容。 有类名为Html 我想用谷歌adsense横幅在小屏幕上调整我的段落,html,css,media-queries,Html,Css,Media Queries,我正试图用谷歌横幅调整我的小屏幕内容。 有类名为父内容的父div和名为ad3的横幅div 这是我的max-600px屏幕代码 .parent-content { position: relative; word-wrap: break-word; -moz-hyphens:auto; -ms-hyphens:auto; -webkit-hyphens:auto; hyphens:auto; } .ad3 { positio
父内容的父div
和名为ad3
的横幅div
这是我的max-600px屏幕代码
.parent-content
{
position: relative;
word-wrap: break-word;
-moz-hyphens:auto;
-ms-hyphens:auto;
-webkit-hyphens:auto;
hyphens:auto;
}
.ad3
{
position: absolute;
display: flex;
justify-content: flex-end;
height:auto;
width:100%;
}
结果:
期待听到解决方案
提前感谢您可以将广告代码放入
并执行浮动:对代码>因此文本环绕它
大概是这样的:
<div style="float:right;">
ADSENSE CODE HERE
</div>
因为谷歌可能会认为你试图做的事情像一个粘性广告,这是对TOS的反对用CSSI got解决方案将HTML代码放在一个片段中。谢谢你的评论
position: absolute;
display: flex;
justify-content: flex-end;