[英]Why does GMail ignore my inline <sup> styling in HTML email
I make HTML emails and I understand that different email clients and browsers have different rules that render code differently. 我制作HTML电子邮件,我理解不同的电子邮件客户端和浏览器有不同的规则,以不同的方式呈现代码。 One thing I have never been able to figure out though is why the following code is ignored:
我从来没有弄清楚的一件事是为什么忽略以下代码:
<sup style="vertical-align:baseline; position:relative; bottom:5px;">1,2</sup>
This is what I've come up with through much trial and error as the best solution for not messing up line heights across different clients, especially pesky IE7. 这是我通过大量试验和错误提出的最佳解决方案,不会破坏不同客户端的线路高度,尤其是讨厌的IE7。 It works and looks fantastic in everything except GMail, in which it simply lies on the baseline and ignores the
bottom:5px
. 除了GMail之外,它的工作和看起来都很棒,它只是位于基线上而忽略了
bottom:5px
。
I've tried adding !important
after each style, but still nothing. 我尝试过在每种风格之后添加
!important
但仍然没有。
I've tried making it a class as well, but again, the same result. 我也试过把它变成一个类,但同样的结果。
Any ideas why it's ignoring my code? 有什么想法忽略我的代码吗?
许多邮件客户端删除任何可能允许邮件逃离其容器并开始搞乱邮件界面本身的标签或样式。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.