什么是最好的方式(CSS /表/内联样式/外部样式表)来格式化电子邮件? [英] What is the best way (CSS/Tables/Inline Styles/External Stylesheets) to format an email?

查看:367
本文介绍了什么是最好的方式(CSS /表/内联样式/外部样式表)来格式化电子邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在计划撰写邮件列表中的HTML邮件。我应该如何格式化?我想过的两个二分法是:




  • CSS,特别是对齐的div,与布局的表格

  • 内联样式 style =width:60%与外部样式表



什么是最佳做法或给我一些有关电子邮件格式的战争故事?

解决方案

这篇文章是伟大的起点。
http://articles.sitepoint.com/article/code-html -email-newsletters



基本上你使用表格进行结构化。使用CSS内联样式,而不是外部。为您的容器使用一个表,然后在表中为每个部分创建另一个表,如标题,内容,页脚。想像电子邮件,就像你十年前的编码一样。 :)


I'm planning on composing HTML mail for a mailing list. How should I format it? The two dichotomies I've contemplated are:

  • CSS, specifically, aligned divs, versus tables for layout
  • Inline styles style="width: 60%" versus external stylesheets

What is the going best practice or give me some war stories regarding email formatting?

解决方案

This article is great starting point. http://articles.sitepoint.com/article/code-html-email-newsletters

Basically you use tables for structure. Use CSS inline styles instead of external. Use a table for your container, and then make another table inside that table for each section, like header, content, footer. Think of emails as if you were coding a decade ago. :)

这篇关于什么是最好的方式(CSS /表/内联样式/外部样式表)来格式化电子邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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