什么是最好的方式(CSS /表/内联样式/外部样式表)来格式化电子邮件? [英] What is the best way (CSS/Tables/Inline Styles/External Stylesheets) to format an email?
问题描述
- 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屋!