构建HTML电子邮件时,我可以在标题部分放置样式还是必须使用内联样式? [英] Building HTML emails, can I put styles in the header section or do I have to use inline styles?

查看:62
本文介绍了构建HTML电子邮件时,我可以在标题部分放置样式还是必须使用内联样式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须使用基本的HTML和CSS构建一些电子邮件模板。

I have to build some email templates using basic HTML and CSS.

我发现此页面,其中详细说明了各种电子邮件客户端中最支持的CSS样式。我知道这些将作为内联样式起作用。但是,我想将它们放在电子邮件的头部,因为它会更干净一些,我是否也可以这样做,是否会得到很好的支持?例如,

I have found this page which details which CSS styles are most supported in various email clients. I understand these will work as inline styles. However I'd like to put them in the head section of the email as it will be a bit cleaner, can I do that as well and will it be well supported? E.g.

<!DOCTYPE html>
<html>
    <head>
        <style type="text/css">
           /* CSS goes here */
        </style>
    </head>
    <body>
        Email goes here
    </body>
</html>

非常感谢!

推荐答案

在电子邮件通讯中使用CSS和HTML在 http://groundwire.org 中的帖子将为您提供帮助..

Using CSS and HTML in Email Newsletters a post in http://groundwire.org will help you..


http://groundwire.org/labs/email-publishing/using-css-and-html-in-email-newsletters

这篇关于构建HTML电子邮件时,我可以在标题部分放置样式还是必须使用内联样式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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