Safe markup for HTML email

99封情书 提交于 2020-01-01 02:06:06

问题


Email clients are limited in their HTML display capabilities.

What HTML markup and CSS styles is it safe to use in HTML-formatted email?


回答1:


In general you want to stick to 10+ years old HTML.

Avoid trying to link to external stylesheets and avoid styles in the HEAD.

Use inline styles.

Use HTML tables for layout.

Industry standard is to stick to width of 600px or less for your email content.

This is a good guide: http://kb.mailchimp.com/article/how-to-code-html-emails




回答2:


Some useful links on this subject detailing which clients support what markup and style:

  • http://www.campaignmonitor.com/css/
  • http://www.email-standards.org/

Places you can get help building cross-client HTML e-mail:

  • https://www.mailrox.com/
  • https://www.getfractal.com/


来源:https://stackoverflow.com/questions/14628090/safe-markup-for-html-email

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!