我们是否仍然需要使用< font> HTML电子邮件中的标签? [英] Do we still need to use <font> tags in HTML emails?

查看:104
本文介绍了我们是否仍然需要使用< font> HTML电子邮件中的标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在接管构建我们的HTML电子邮件的人,模板中填满了字体标签。这真的有必要吗?我知道CSS支持在电子邮件中不是很好,但是如果我在容器< td> 上设置一个内联样式,就像这样...

I'm taking over from someone who builds our HTML emails and the templates are filled with font tags. Is this really necessary? I know CSS support isn't great in emails, but if I set an inline style for text on the container <td> like this...

<td style="font-family:Arial, Helvetica;color:#555555;font-size:12px">

...那么这肯定会在大多数电子邮件客户端上运行。从我所执行的测试来看,似乎是这样,这篇文章似乎证实了这一点。

...then surely this will work across the majority of email clients. From the tests I've performed this seems to be the case, and this article seems to confirm this.

任何人都有任何关于HTML电子邮件中是否需要< font> 标签的输入? >

Anyone have any input as to whether <font> tags are really necessary in HTML emails?

推荐答案

你的假设是正确的。它们是不必要的另外,从技术上讲,从HTML 4开始不推荐使用< font> 标签,所以您也可以单独删除它。

Your assumption is correct. They're unnecessary. Also, technically the <font> tag was deprecated starting with HTML 4, so you might as well remove it for that sake alone.

如果您需要在特定文本上使用内联CSS样式,那么您最好使用一个内联样式的< span> 标签,而不是< font> 标签。

If you needed inline css styles on specific text, you would be better of using an inline-styled <span> tag than a <font> tag.

Campaign Monitor有一个很好的最新资源,目前的电子邮件中的CSS支持

Campaign Monitor has a great and up-to-date resource on current CSS support in emails.

这篇关于我们是否仍然需要使用&lt; font&gt; HTML电子邮件中的标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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