HTML email in Gmail - CSS style attribute removed

前端 未结 6 1491
慢半拍i
慢半拍i 2020-12-05 10:31

I\'m working on an HTML email and I am using MailChimp\'s Responsive Email Templates in combination with their CSS inliner tool. For the most part, the email looks great acr

6条回答
  •  温柔的废话
    2020-12-05 10:52

    I just checked now: Gmail strips out your inline style attribute if you don't put spaces between ; , , and : chars

    this works fine:

    text
    

    but the same rule will be stripped out if you don't use spaces; if you write this:

    text
    

    you will get this output on Gmail client:

    text
    

    EDIT:

    In addition to this behavior, I noticed that Gmail tends to strip out the inline style if you declare a font-family inside a nested

    or a
    , I'm still not sure on what is the general rule of its preprocessor, I checked on Google but I can't find any official documentation about html mail composition for Gmail.

    提交回复
    热议问题