HTML电子邮件模板是否需要使用样式属性? [英] Do HTML email templates require the use of the style attribute?
问题描述
是否存在(出于某种原因)需要将CSS规则直接放置在HTML标签的样式
属性中的场景,而不是将CSS规则置于在HTML电子邮件模板的HEAD中的STYLE元素中选择器?
(我要求提供最常用的CSS选择器,例如类型,类,ID,后代组合)
后续问题:
元件。这是为什么? (这个决定背后的原因是什么?)是的,例如google gmail不会处理STYLE元素头部。
看看这个网站的电子邮件客户端以及他们可以/不能做什么关于css: http://www.campaignmonitor.com/css/
Are there scenarios where it is (for some reason) required to place the CSS rule inside the style
attribute of the HTML tag directly instead of placing the CSS rule inside a selector in the STYLE element in the HEAD of the HTML email template?
(I am asking for the most common CSS selectors, like type, class, ID, descendant combinations)
Follow-up question:
Gmail seems to be the only relevant email service that does not support the STYLE element. Why is that? (What's the reasoning behind this decision from Google?)
Yes, for example google gmail won't handle the STYLE element in the HEAD.
Look at this site for email clients and what they can/can't do regarding css: http://www.campaignmonitor.com/css/
这篇关于HTML电子邮件模板是否需要使用样式属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!