你好,我正在使用自家广告,但比例非常奇怪。
我尝试通过编辑 CSS 来调整:
.house-creative.house-post-bottom {
a.between-posts-ad {
max-height: 1672px;
img {
&.desktop {
height: 172px;
display: block;
}
&.mobile {
height: 172px;
display: none;
}
}
}
}
我的广告 HTML 代码如下:(我知道如何正确闭合标签,这里特意去掉了 ‘>’ 以便在此处显示代码)
<
a href="xxxx" class="banner-ad" target="_blank">
img class="desktop" src="xxx" style="xxxx" height="172" width="172">
img class="mobile" src="xxx" style="xxxx" height="172" width="172">
</a>
如您所见,这导致宽度为 172px,这正是我想要的,但高度并不是我设置的值。
有人能帮忙解释一下问题出在哪里吗?
