最佳实践编写 HTML 电子邮件时的注意事项 [英] Best Practices & Considerations when writing HTML Emails

查看:16
本文介绍了最佳实践编写 HTML 电子邮件时的注意事项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开发网站十多年了,但很快发现我为网络开发的许多习惯在为电子邮件客户端开发时毫无用处.这让我非常沮丧,所以我想我会问一个问题:

I've been developing websites for over a decade now, but quickly found that many of my habits in developing for the web are useless when developing for email clients. This has caused me an enormous amount of frustration, so I thought I would ask a question:

对于像我这样可能不时为 Gmail、Outlook 等进行设计的其他人来说,最佳实践和必要考虑是什么?

What are best practices and necessary considerations for others like myself who may find themselves designing for gmail, outlook, etc. from time to time?

示例: 与内联 CSS.

Example: <style>...</style> vs inline CSS.

简而言之:什么从网络世界转移到电子邮件世界,什么没有?

In short: what transfers over from the web-world to the email-world, and what doesn't?

推荐答案

这似乎是一个为任何试图学习 HTML 电子邮件的人列出一些资源的好地方.这(可能)是您可以在网络上找到的最全面的 HTML 电子邮件资源列表.快乐学习.

This seems like a great place to list some resources for anyone trying to learn HTML email. This is (probably) the most comprehensive list of HTML Email resources you will find on the web. Happy learning.

入门指南:

CSS 支持 &一般指南:

CSS Support & General Guides:

您应该始终在 html-email 中内联您的 CSS.这是 CSS 内联工具

You should always inline your CSS in html-email. Here is a list of CSS Inlining Tools

响应式指南:

模板和框架:

响应式替代示例:

上面的 Ted Goas 响应式链接也有一个很好的流畅示例.

Also the Ted Goas Responsive link above has an excellent fluid example.

故障排除和一般指南:

您需要使用 VML 获取在 Outlook 中工作的背景图像(除了 在正文标签中).以下是一些 VML 链接:

You'll need to use VML to get background images working in Outlook (Except in the body tag). Here are some VML links:

这篇关于最佳实践编写 HTML 电子邮件时的注意事项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆