Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/40.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 我想用谷歌adsense横幅在小屏幕上调整我的段落_Html_Css_Media Queries - Fatal编程技术网

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;