第一部分是响应式的,但广告空间在这里没有响应。然后如何展示这个广告空间?
<div class="row">
<div class="col s12 m12 l10">
<!--part one-->
</div>
<div class="hide-on-med-and-down showAdPart">
<!-- 300x600 ad space-->
</div>
</div>
答案 0 :(得分:1)
使用l12类100%或你的宽度,然后按照,
<div class="col s12 m12 l12 partOne">
<!--part one-->
</div>
<div class="hide-on-med-and-down showAdPart">
<!-- 300x600 ad space-->
</div>
css:使用calc()
@media screen and (min-width: 993px){ /* large screen */
.partOne.col.l12{
width: -webkit-calc(100% - 300px);
width: -moz-calc(100% - 300px);
width: calc(100% - 300px);
}
}