我有这段代码,这是他改编的一个模板。当我在本地查看,因为它是好的,当我发送它与雷鸟附加的html不是。你看不到我从dropbox中获取的图片,也看不到样式。
enter image description here -->这是在本地
enter image description here -->这是在雷鸟
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<!-- If you delete this meta tag, Half Life 3 will never be released. -->
<title>Title</title>
<link rel="stylesheet" type="text/css" href="stylesheets/email.css" />
</head>
<!------------------------------------
---- HEADER --------------------------
------------------------------------->
<table class="head-wrap" bgcolor="#FFFF00">
<tr>
<td class="header container">
<div class="content">
<table bgcolor="#FFFF00" class="">
<tr>
<td><img src="Imagen" style="width:200px; margin-left: 30px;" /></td>
<td> <img src="Imagen2" style="width:200px;" /></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
<!------------------------------------
---- BODY ----------------------------
------------------------------------->
<table class="body-wrap">
<tr>
<td class="container" bgcolor="#FFFFFF">
<!-- content -->
<div class="content">
<table>
<tr>
<td>
<h1>Motor honda</h1>
<table>
<thead>
<tr>
<th><img src="foto3" style="width=250px;" />
</th>
<th><img src="foto4"style="width=250px;" />
</th>
</tr>
</thead>
<tr>
</table>
<!-- A Real Hero (and a real human being) -->
<!-- /hero -->
<!-- Callout Panel -->
<p class="callout">
Message2
</p><!-- /Callout Panel -->
</td>
</tr>
</table>
</div>
<!-- COLUMN WRAP -->
<div class="column-wrap">
<div class="column">
<table align="left">
<tr>
<td>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et. Lorem ipsum dolor sit amet.</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et.</p>
</td>
</tr>
</table>
</div>
<div class="column">
<table align="left">
<tr>
<td>
<!-- social & contact -->
<table bgcolor="" class="social" width="100%">
<tr>
<td>
<table align="left" width="100%">
<tr>
<td>
<h6 class="">Connect with Us:</h6>
<p class=""><a href="https://www.facebook.com/" class="soc-btn fb">Facebook</a> <a href="https://twitter.com/" class="soc-btn tw">Twitter</a> </p>
<h6 class="">Contact Info:</h6>
<p><strong>Phone:</strong> <br/>
<p><strong>Web: </strong> <br/>
<strong> Email:</strong><a href="emailto:hseldon@trantor.com"></a></p>
</td>
</tr>
</table>
</td>
</tr>
</table><!-- /social & contact -->
</td>
</tr>
</table>
</div>
<div class="clear"></div>
</div><!-- /COLUMN WRAP -->
</td>
<td></td>
</tr>
</table>
<!-- FOOTER -->
<table class="footer-wrap">
<tr>
<td></td>
<td class="container">
<!-- content -->
</td>
<td></td>
</tr>
</table><!-- /FOOTER -->
</body>
</html>发布于 2018-01-04 04:57:31
您引用的文件与html文件位于同一文件夹中。由于您没有发送整个文件夹,因此您无法访问Thunderbird中的这些文件。试一试
<img src="https://www.dropbox.com/pathToYourImage" style="width=250px;" />而不是:
<img src="foto3" style="width=250px;" />发布于 2018-01-04 04:58:32
使您的css文件和图像文件成为完整的URL路径。大多数电子邮件软件将允许您直接上传图像和其他文件到他们的服务器,或者如果您有自己的web服务器,您也可以在那里存储这些文件。
https://stackoverflow.com/questions/48084923
复制相似问题