简体   繁体   English

HTML电子邮件不适用于Gmail

[英]HTML Email Not Working for Gmail

I am using inline css to build this email but somehow it is still not working for Gmail. 我正在使用内联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> 

In any other inboxes the timer is displayed the way it should be but only in Gmail the timer is displayed below the background image. 在任何其他收件箱中,计时器以应有的方式显示,但仅在Gmail中,计时器显示在背景图片下方。

Does anyone have any idea why this is happening? 有谁知道为什么会这样吗?

Gmail does not respond to relative positioning at all. Gmail完全不响应相对位置。 Use width/margin property instead. 请改用width / margin属性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM