要在电子邮件中使用什么版本的HTML? [英] What version of HTML to use in emails?

查看:450
本文介绍了要在电子邮件中使用什么版本的HTML?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么版本的html将推荐邮件内容获得最佳邮件客户端兼容性?

What version of html would yo recommend for mail content to get best mail-client compatibility?

HTML 3.2

HTML 4.01过渡性

HTML 4.01 strict

XHTML 1.0

XHTML 2.0

HTML 5

HTML 3.2
HTML 4.01 transitional
HTML 4.01 strict
XHTML 1.0
XHTML 2.0
HTML 5

你会推荐我用什么?

BR

Andreas

BR
Andreas

推荐答案

如果您认为browser-html是分散的,您将用电子邮件html将头发拉出。您经常没有提供 doctype (以区分过渡/严格等)的奢侈...即使您提供一个很多客户端也将忽略它。当您有网络邮件观众时,这会变得更加复杂 - 这些网页已经有自己的文档类型,所以他们不会注意你的。

If you thought browser-html was fragmented, you're going to pull your hair out with email-html. You often don't have the luxury of providing a doctype (to distinguish between transitional/strict, etc)... even if you provide one a lot of clients will ignore it. This gets even more complicated when you have webmail viewers - those pages already have their own document type so they won't pay attention to yours.

一旦你过去了(因为 - 甚至不担心),你会学到非常有限的布局选项提供... CSS只是模糊地支持...而不是每个客户端(这里的优秀指南)。桌面设计将会回溯,你会发现自己在哭泣的事情,只是为了让它看起来可读(更不用说让它看起来像跨平台)。

Once you're past that (as in - don't even worry about it), you'll learn that very limited layout options are provided... CSS is only vaguely supported... and not by every client (excellent guide here). Table design will creep back in, and you'll find yourself weeping at the things you have to do just to get it to look readable (let alone get it looking similar across platforms).

与在命令行上构建GUI应用程序或将胡萝卜引入剑战是不同的。

It's not unlike trying to build a GUI application on the command line... or bringing a carrot to a sword fight.

这篇关于要在电子邮件中使用什么版本的HTML?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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