这是向 Google 用户发送电子邮件时看似已知的问题:Google 将所有“高度”声明更改为“最小高度”。这意味着堆叠的图像不再无间隙地相互“接触”。
有没有人知道一个好的解决方法?
这是一个例子:
<div style="height:244px">
<img src="http://www.domain.com/images/top.gif" alt="" />
</div>
<div style="height:266px">
<img src="http://www.domain.com/images/bottom.gif" alt="" />
</div>
在 GMail 中显示如下:
<div style="min-height:244px">
<img src="http://www.domain.com/images/top.gif" alt="" />
</div>
<div style="min-height:266px">
<img src="http://www.domain.com/images/bottom.gif" alt="" />
</div>
所以不是这个:
在 GMail 中,两张相互堆叠的图片看起来像这样:
必须有一个简单的解决方法吗?
最佳答案
我刚刚遇到了这个问题并通过设置 max-height
解决了它,它不会混淆。
关于html - 订阅者电子邮件 : GMail is converting height to min-height,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6711165/