gpt4 book ai didi

css 控制 HTML EMAILS 中的字体大小

转载 作者:技术小花猫 更新时间:2023-10-29 11:45:19 29 4
gpt4 key购买 nike

有没有办法让 HTML EMAILS 中的字体大小保持相似?

在网站上看起来不错,但在我的电子邮件中,文本非常小且靠得很近。

Live Demo

我附上了我在电子邮件中看到的内容的屏幕截图。 enter image description here

有什么办法可以解决这个问题吗?

这是html代码:

<html>
<head>
<title>The Most Holy Rosary</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
#Table_01 tr td #box {
font-family: Tahoma, Geneva, sans-serif;
font-size: 16px;
line-height: 24px;
}
</style>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- Save for Web Slices (Holy Mary Email copy.psd) -->
<table width="843" height="855" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
<tr>
<td colspan="2" valign="top">
<img src="http://www.EdVizenor.com/rosary/email/images/HailMary_01.png" width="546" height="253" alt=""></td>
<td width="297" rowspan="3" valign="top">
<img src="http://www.EdVizenor.com/rosary/email/images/HailMary_02.png" width="297" height="855" alt=""></td>
</tr>
<tr>
<td width="11" valign="top">
<img src="http://www.EdVizenor.com/rosary/email/images/HailMary_03.png" width="11" height="565" alt=""></td>
<td width="535" valign="top"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="15" id="box">
<tr>
<td valign="top"><p style="font-weight: bold; color: #666;">PRAISE BE JESUS CHRIST!</p>
<p><br>
Thank you for taking the time to read this email. We are developing some exciting media to help you and others fall even more in love with JESUS through the power of Mary, the Queen of Heaven (Revelations 12) and through Heaven's blessed gift to us... The Most Holy Rosary. </p>
<p>We need your help if you can. We need you to answer some quick questions on the Rosary. Also once on the page can you &quot;like&quot; it on Facebook, Tweet it and finally forward this email to friends who may be interested. Awesome! Thank you so much.</p>
<p align="center"><a href="http://www.EdVizenor.com/?p=questions"><img src="http://www.EdVizenor.com/rosary/email/images/HolyRosary.png" width="364" height="67"></a></p>
<p>Be assured of my prayers for you and all your intentions in my Rosary.</p>
<p>In The Merciful Heart Of Jesus Christ,<br>
<span style="color: #666">Ed Vizenor </span></p></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2" valign="top">
<img src="http://www.EdVizenor.com/rosary/email/images/HailMary_05.png" width="546" height="37" alt=""></td>
</tr>
</table>
<!-- End Save for Web Slices -->
</body>
</html>

最佳答案

始终为电子邮件提供内联样式。电子邮件不支持外部样式。像这样写:

<table style="font-size:16px" width="843" height="855" border="0" align="center" cellpadding="0" cellspacing="0"></table>

关于css 控制 HTML EMAILS 中的字体大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14474938/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com