我正在尝试设计一个项目的电子邮件模板。我已经准备好了CSS和HTML的电子邮件模板的工作。当我在浏览器中查看时,我的电子邮件模板看起来完全是我想要的方式,但是一旦电子邮件在电子邮件客户端(Gmail,Outlook)中查看,它就会显示出来。未应用样式、字体和图像。我当前的电子邮件模板结构:
<html>
<head>
<style>
/*Font import*/
/*Class stylings*/
/*Media query's*/
</style>
</head>
<body>
<!-- My email content -->
<div id="header">
<div class="content-header-center">
<div class="container">
<a href="#" target="_blank"
><img
alt="#"
src="#"
/>
</a>
<div class="content-spot">
<h1>
<a href="#" target="_blank"
>You are invited to the<br />
presentation of the dawn</a
>
</h1>
<p> </p>
</div>
</div>
</div>
</div>
<div id="content">
<div class="container landing-page">
</div>
</div>
</body>
</html>我正在使用PHP来编码模板,然后使用邮件枪(如果相关)邮件,有人能帮我解决这个问题吗
发布于 2020-03-13 06:17:55
电子邮件要求在开始时包含CSS,因为电子邮件将无法链接到您的CSS。这称为内联CSS。
有关更多信息,请访问:https://css-tricks.com/using-css-in-html-emails-the-real-story/
https://stackoverflow.com/questions/60662212
复制相似问题