HTML电子邮件样式/格式

问题描述 投票:0回答:1

我正在尝试为项目设计电子邮件模板。我已经准备好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>&nbsp;</p>
          </div>
        </div>
      </div>
    </div>

    <div id="content">
      <div class="container landing-page">
      </div>
    </div>
</body>
</html>

我正在使用PHP编写模板代码,然后使用mailgun邮寄(如果相关)有人可以帮我解决这个问题

html-email
1个回答
0
投票
© www.soinside.com 2019 - 2024. All rights reserved.