html 我的Drip电子邮件简报模板
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了html 我的Drip电子邮件简报模板相关的知识,希望对你有一定的参考价值。
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Drip email template</title>
<style>
/* -------------------------------------
GLOBAL RESETS
------------------------------------- */
img {
border: none;
-ms-interpolation-mode: bicubic;
max-width: 100%; }
body {
background-color: #fff;
color: #222;
font-family: Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
font-size: 15px;
line-height: 1.5;
margin: 0;
padding: 0;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%; }
table {
border-collapse: separate;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
width: 100%; }
table td {
font-family: Helvetica, Arial, sans-serif;
font-size: 15px;
vertical-align: top; }
/* -------------------------------------
BODY & CONTAINER
------------------------------------- */
.body {
background-color: #fff;
width: 100%; }
/* Set a max-width, and make it display as block so it will automatically stretch to that width, but will also shrink down on a phone or something */
.container {
display: block;
Margin: 0 auto !important;
/* makes it centered */
max-width: 580px;
padding: 10px 10px 0;
width: 580px; }
/* This should also be a block element, so that it will fill 100% of the .container */
.content {
box-sizing: border-box;
display: block;
Margin: 0 auto;
max-width: 580px;
padding: 10px; }
/* -------------------------------------
HEADER, FOOTER, MAIN
------------------------------------- */
.main {
background: #fff;
width: 100%; }
.wrapper {
box-sizing: border-box;
padding: 0; }
.footer {
clear: both;
background-color: #f6f6f6;
color: #555555;
font-size: 13px;
line-height: 1.5;
padding-top: 15px;
padding-left: 15px;
padding-right: 15px;
padding-bottom: 15px;
text-align: left;
max-width: 580px; }
.footer td,
.footer p,
.footer span,
.footer a, .footer a:link, .footer a:visited, .footer a:hover,
.footer a:active {
color: #555555 !important;
font-size: 13px !important;
text-align: left; }
.footer .ii a[href] {
color: #555555 !important;
}
/* -------------------------------------
TYPOGRAPHY
------------------------------------- */
h1,
h2,
h3,
h4 {
color: #222;
font-family: Helvetica, Arial, sans-serif;
font-weight: bold;
line-height: 1.5;
margin: 0;
Margin-bottom: 10px;
Margin-top: 10px; }
h1 {
font-size: 22px; }
h2 {
font-size: 16px; }
p,
ul,
ol {
font-family: Helvetica, Arial, sans-serif;
font-size: 15px;
margin: 0;
Margin-bottom: 15px; }
p li,
ul li,
ol li {
margin-left: 5px; }
ul li {
list-style-position: outside;
}
ul,
ol {
margin-top: 15px;
}
a {
color: #006AFF;
text-decoration: underline; }
a:hover {
text-decoration: underline;
}
/* -------------------------------------
BUTTONS
------------------------------------- */
.btn {
box-sizing: border-box;
width: 100%; }
.btn > tbody > tr > td {
padding-bottom: 15px; }
.btn table {
width: auto; }
.btn table td {
background-color: #ffffff;
border-radius: 5px;
text-align: center; }
.btn a {
background-color: #ffffff;
border: solid 1px #36b560;
border-radius: 5px;
box-sizing: border-box;
color: #36b560;
cursor: pointer;
display: inline-block;
font-size: 16px;
font-weight: bold;
margin: 0;
padding: 12px 25px;
text-decoration: none;
text-transform: capitalize; }
.btn-green table td {
background-color: #36b560; }
.btn-green a {
background-color: #36b560;
border-color: #36b560;
color: #ffffff; }
.btn-blue table td {
background-color: #006AFF; }
.btn-blue a {
background-color: #006AFF;
border-color: #006AFF;
color: #ffffff; }
/* -------------------------------------
OTHER STYLES THAT MIGHT BE USEFUL
------------------------------------- */
.last {
margin-bottom: 0; }
.first {
margin-top: 0; }
.align-center {
text-align: center; }
.align-right {
text-align: right; }
.align-left {
text-align: left; }
.clear {
clear: both; }
.mt0 {
margin-top: 0; }
.mb0 {
margin-bottom: 0; }
.preheader {
color: transparent;
display: none;
height: 0;
max-height: 0;
max-width: 0;
opacity: 0;
overflow: hidden;
mso-hide: all;
visibility: hidden;
width: 0; }
.powered-by a {
text-decoration: none; }
hr {
border: 0;
border-bottom: 1px solid #f6f6f6;
Margin: 20px 0; }
/* -------------------------------------
RESPONSIVE AND MOBILE FRIENDLY STYLES
------------------------------------- */
@media only screen and (max-width: 620px) {
table[class=body] h1 {
font-size: 22px !important;
margin-bottom: 10px !important; }
table[class=body] h2 {
font-size: 17px !important; }
table[class=body] p,
table[class=body] ul,
table[class=body] ol,
table[class=body] td,
table[class=body] span {
font-size: 16px !important; }
table[class=body] a {
font-size: 16px !important;
}
table[class=body] .wrapper,
table[class=body] .article {
padding: 15px !important; }
table[class=body] .content {
padding: 0 !important; }
table[class=body] .container {
padding: 0 !important;
width: 100% !important; }
table[class=body] .main {
border-left-width: 0 !important;
border-radius: 0 !important;
border-right-width: 0 !important; }
table[class=body] .btn table {
width: 100% !important; }
table[class=body] .btn a {
width: 100% !important; }
table[class=body] .img-responsive {
height: auto !important;
max-width: 100% !important;
width: auto !important; }
table[class=body] .footer {
font-size: 15px !important;
}
table[class=body] .footer a,
table[class=body] .footer a:link,
table[class=body] .footer a:visited,
table[class=body] .footer a:hover,
table[class=body] .footer a:active {
color: #555555 !important;
font-size: 15px !important;
}}
/* -------------------------------------
PRESERVE THESE STYLES IN THE HEAD
------------------------------------- */
@media all {
.ExternalClass {
width: 100%; }
.ExternalClass,
.ExternalClass p,
.ExternalClass span,
.ExternalClass font,
.ExternalClass td,
.ExternalClass div {
line-height: 100%; }
.apple-link a {
color: inherit !important;
font-family: inherit !important;
font-size: inherit !important;
font-weight: inherit !important;
line-height: inherit !important;
text-decoration: none !important; }
.btn-green table td:hover {
background-color: #36b560 !important; }
.btn-green a:hover {
background-color: #36b560 !important;
border-color: #36b560 !important; }
.btn-blue table td:hover {
background-color: #006AFF !important; }
.btn-blue a:hover {
background-color: #006AFF !important;
border-color: #006AFF !important; }
</style>
</head>
<body class="">
<table border="0" cellpadding="0" cellspacing="0" class="body">
<tr>
<td class="container">
<div class="content">
<!-- START CENTERED WHITE CONTAINER -->
<table class="main">
<!-- START MAIN CONTENT AREA -->
<tr>
<td class="wrapper">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<p>Hi {{ subscriber.first_name | default: "there" }},</p>
{{ email.html }}
<p style="margin-top: 30px">
---<br /><b>Design Build Web</b><br>
<a href="http://www.designbuildweb.co">Website</a> |
<a href="http://www.facebook.com/designbuildweb/">Facebook</a> |
<a href="http://www.twitter.com/designbuildweb/">Twitter</a> |
<a href="https://www.youtube.com/c/DesignBuildWeb">YouTube</a>
</p>
<p><b>Need guaranteed one-to-one help?</b> <a href="https://www.designbuildweb.co/coaching/">Book a call with me</a>.</p>
</td>
</tr>
</table>
</td>
</tr>
<!-- END MAIN CONTENT AREA -->
</table>
<!-- START FOOTER -->
{% unless footer.html == blank %}
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td class="footer">
{{ footer.html }}
</td>
</tr>
</table>
{% endunless %}
<!-- END FOOTER -->
<!-- END CENTERED WHITE CONTAINER --></div>
</td>
</tr>
</table>
</body>
</html>
以上是关于html 我的Drip电子邮件简报模板的主要内容,如果未能解决你的问题,请参考以下文章