简体   繁体   English

电子邮件的HTML和CSS,如何使用,在哪里使用?

[英]Html and CSS for emails, how to, where to?

I have to design quite a lot of html email. 我必须设计很多HTML电子邮件。

The way I do it at the present is I design and html file and the css until it´s looking good in the browser. 目前,我的方法是设计和html文件以及CSS,直到在浏览器中看起来不错为止。

Then I send it, and start fixing it for the different clients, there it all goes really wrong (believe me outlook plays tricks on your mind, much like his cousin IE does). 然后,我将其发送出去,并开始为不同的客户修复它,这一切都真的出错了(相信我,Outlook在您的脑海中起了诡计,就像他的表弟IE一样)。

The question is: is there actually a more reasonable way to do this? 问题是:实际上是否存在更合理的方法? A way that doesnt imply so much more time fixing and solving than making? 有没有一种方法可以使确定和解决问题的时间比花费更多的时间?

Maybe the problem is that I haven´t read the correct documentation, any advice? 也许问题是我没有阅读正确的文档,有什么建议吗? is there and "email html" good documentation? 是否有和“通过电子邮件发送HTML”的好文档? books? 图书? what ever, I´m desperate! 无论如何,我绝望!

Thanks in advance! 提前致谢!

PS: I hope this isn´t taken as an open question. PS:我希望这不是一个公开的问题。 I´m asking for any methods that will improve the efficiency coding html email. 我要求提供任何可提高html电子邮件编码效率的方法。

HTML and CSS in emails are probably the hardest challenge any designer could tackle. 电子邮件中的HTML和CSS可能是任何设计师都可以解决的最困难的挑战。 Chris Coyier of CSS Tricks created a drawing table after he learned of its use as a relatively sure-fire way to style emails without images: http://css-tricks.com/drawing-table/ CSS Tricks的Chris Coyier得知绘图表是一种相对可靠的方式来样式化没有图像的电子邮件后,创建了一个绘图表: http : //css-tricks.com/drawing-table/

I would guess your best bet is to go heavy with the tables. 我猜您最好的选择是增加桌子的重量。

I do quite a bit of HTML emails for my job. 我为工作做了很多HTML电子邮件。 Some of the rules we follow: 我们遵循的一些规则:

  1. Use CSS sparingly. 谨慎使用CSS。 It works ok for colors but not really for anything else across multiple clients 它适用于颜色,但不适用于多个客户端
  2. CSS you do use must all be inline. 您使用的CSS必须全部是内联的。 (no <style> tags, just style= attributes). (没有<style>标签,只有style=属性)。
  3. Tables for layout, positioning won't work reliably. 用于布局,定位的表格无法可靠地工作。
  4. Basically follow the HTML 3 standard 基本上遵循HTML 3标准

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM