我正在使用内联 css 来构建这封电子邮件,但不知何故它仍然不适用于 Gmail。
<html><body><div style="position: relative; left: 0; top: 0;">
<img src="https://gallery.mailchimp.com/6f6b385af54ef142d60ca3b89/images/9e4199e6-b228-426a-9ff4-d38938270c80.jpg" class="background" style="position: relative; top: 0; left: 0;">
<img src="http://s.mmgo.io/t/4c3" class="timer" style="position: absolute; top: 760px; left: 130px;">
</div></body></html>
在任何其他收件箱中,计时器会按应有的方式显示,但只有在 Gmail 中,计时器才会显示在背景图像下方。
有人知道为什么会这样吗?
最佳答案
Gmail 根本不响应相对定位。请改用宽度/边距属性。
关于HTML 电子邮件不适用于 Gmail,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48876368/