HTML email in Gmail - CSS style attribute removed

前端 未结 6 1488
慢半拍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:59

    There are multiple work arounds for gmail. Gmail is quite a joker when it comes to your styling, as it'll strip what it doesn't like completely out of your e-mail.

    Here are some little tips:

    Gmail adds white space between images, or stretched the size of it's container td: You can correct this by specifying style="display:block" on your images (Make sure your TD has the same width and/or height as your image).

    Gmail renders black links as blue links: Yes, this is ugly. Use #000001 instead of #000000.

    Gmail makes phone numbers clickable: That may be a good thing or not, depending on your client, but one way to work around that is to include an empty anchor tag with styles around the phone number.

    Ex:

提交回复
热议问题