-->

Do HTML email templates require the use of the sty

2019-07-21 12:29发布

问题:

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?)

回答1:

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/