【发布时间】:2017-07-25 16:14:45
【问题描述】:
我被困在解决这个问题上。
它的工作原理,它可以在移动视图中隐藏横幅。但有些不对劲。我的内容网站后面的横幅显示。它看起来像横幅将成为我网站的背景。
请任何人帮助我。
#largeAds {
width:728px;
height: 90px;
line-height: 90px;
margin: 0 auto;
background: #ccc;
text-align: center;
}
#smallAds{
display: none;
margin: 0 auto;
width: 468px;
height: 60px;
line-height: 60px;
background: #333;
color: #fff;
text-align: center;
}
@media screen and (max-width: 750px) {
#largeAds { display: none }
#smallAds{display: block;}
}
<div id="largeAds">Large ads (728 x 90)</div>
<div id="smallAds">Small ads (468 x 60)</div>
【问题讨论】:
-
欢迎来到 SO。 我们在这里为您的代码提供帮助,请编辑您的问题以添加完整的代码,以便有人可以查看它。您提到的
my content site没有代码。
标签: javascript jquery html css