您可以从电子邮件链接到 CSS 文件吗? [英] Can you link to a CSS file from an email?

查看:32
本文介绍了您可以从电子邮件链接到 CSS 文件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

发送 HTML 电子邮件时,您是否可以链接到外部样式表,或者是否需要将 CSS 包含在电子邮件中?

When sending an HTML email can you link to an external style sheet or does the CSS need to be included in the email?

此外,如果您可以链接到外部样式表,哪种方式更有效/更智能:链接到样式表还是将其包含在 HTML 中?

Also, if you can link to an external style sheet, which way is more efficient/is smarter to use: linking to the style sheet or including it in the HTML?

推荐答案

你能吗?是的.

你应该吗?不会.电子邮件客户端很可能会阻止外部链接,因此您的邮件不会像您认为的那样显示.

Should you? No. Most likely the email client will block external links and therefore your mail will not appear as you think it should.

如果您必须发送 html 邮件,请将所有内容嵌入电子邮件本身.自动回调主服务器以加载额外资源的外部链接是垃圾邮件过滤器不喜欢的一件事.

If you must send html mail, embed everything into the email message itself. External links which automatically call back to the home server to load additional resources are one thing spam filters don't like.

这篇关于您可以从电子邮件链接到 CSS 文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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