在Mailchimp广告系列中使用Font Awesome图标

Kar*_*arl 5 html css font-face mailchimp font-awesome

我为mailchimp广告系列创建了一个HTML模板,其中包含页脚中的字体真棒图标.如果我使用Mandrill发送HTML电子邮件,它的工作正常.当我将HTML导入Mailchimp模板时,图标不会出现.

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width" />
    <link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
    <link href='http://fonts.googleapis.com/css?family=Montserrat' rel='stylesheet' type='text/css'>
    <style>
.footer i {
        color: #999;
        margin: 0 2px;
    }

    .footer i:hover {
        color: #333;
    }

    .footer p {
        text-align: center;
        margin-bottom: 15px;
    }

    .footer a i {
        border: none;
        outline: none;
    }
</style>
Run Code Online (Sandbox Code Playgroud)

以下是正在使用的图标:

<p>
  <a href="http://facebook.com/"><i class="fa fa-facebook-square fa-2x"></i>
  <a href="http://twitter.com/"><i class="fa fa-twitter fa-2x"></i>
  <a href="http://pinterest.com/"><i class="fa fa-pinterest fa-2x"></i>
  <a href="http://instagram.com/"><i class="fa fa-instagram fa-2x"></i>
</p>
Run Code Online (Sandbox Code Playgroud)

A.J*_*A.J 3

您需要使用内联 CSS,如下所示:

使用内联 CSS 因为基于浏览器的电子邮件应用程序(例如 Gmail)默认情况下会删除<head>和标记,因此始终使用内联 CSS 而不是嵌入 CSS。<body>

阅读链接

尝试在此处转换您的代码,然后邮寄