【问题标题】:can i attach css to email newsletter HTML file我可以将 css 附加到电子邮件通讯 HTML 文件吗
【发布时间】:2014-08-25 19:32:08
【问题描述】:
我正在尝试制作 html 新闻信函(电子邮件模板)。我可以将 CSS 文件附加到此模板吗?它会正常工作吗?
【问题讨论】:
标签:
css
email
templates
newsletter
【解决方案1】:
看起来像这个样本
<html>
<head>
<title>
<!--mohammad reza ashouri :megacoder999@gmail.com -->
</title>
<style>
<!--
p { color:#009900;
font-family:"comic sans ms",sans-serif; }
h1 { color:#660000; font-size:12pt; }
-->
</style>
</head>
<body>
<h1> email template </h1>
<p>I am a very basic emaol template.</p>
......
</body>
</html>
【解决方案2】:
不,你只能在像这样的内联 CSS 上添加
<div style="color:#000">Hello</div>