Hotmail 中的 HTML 电子邮件通讯问题

标签 html css newsletter email-client hotmail

我有以下适用于所有电子邮件客户端的 html,但在 hotmail 中,我在每个 html 标签之间获得了一些额外的空间。基本上标签之间的间距很奇怪。例如,我正在使用此 html。它应该与浏览器中的一样。没有多余的空间。

任何人都请帮忙!!!

<table border="0" cellpadding="0" cellspacing="0" style="display:block;line-height:100%;">
                <tr>
                  <td style="color: #333332; font-family: Georgia, Times, serif; font-size: 14px; line-height: 22px; text-align: justify;margin:0;">
                    Peakview Place Apartments in Englewood  CO are 25 minutes from downtown Denver and less than 5 minutes from I 25   Apartments have washers dryers  
                    private patios balconies  kitchens with pantries  wood burning fireplaces  large closet space and wood style floors in select homes   Pet friendly 
                    community features 24 hour fitness center  swimming pool  playground  barbecue picnic area and complimentary coffee   Located near the Denver Tech Center  
                    less than 10 minutes from Park Meadows Mall and less than five miles from C 470 and I 225   Call or visit our website for a personal tour                      
                  </td>
                </tr>
              </table>

              <table width="100%" border="0" style="color: #333332; font-family: Georgia, Times, serif; font-size: 14px;display:block;line-height:100%;">
                <tr>
                  <td style="color: #333332; font-family: Georgia, Times, serif; font-size: 14px;text-align: left;">
                    <strong>Floorplans &amp; Prices</strong>
                  </td>
                </tr>
                <tr>
                  <td style="color: #333332; font-family: Georgia, Times, serif; font-size: 14px; line-height: 22px;">
                  We offer pricing and floorplans to meet our resident's needs.  Click on one of the floorplan buttons below to see diagrams.
                  </td>
                </tr>
              </table>

最佳答案

假设间隙发生在您的表之间,请尝试将其放入标题中:p {margin: 1em 0;}

另一种选择是使用一个大表而不是将它们分开。

此外,您忘记了底部表格中的 cellpadding="0"cellspacing="0"

关于Hotmail 中的 HTML 电子邮件通讯问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17258707/

相关文章:

javascript - 在插入 DOM 之前操作 html 字符串

jquery - 自定义 Bootstrap 轮播指示器

css - 移动滚动不适用于嵌套的 Div

php通讯脚本复制正文内容

email - 使用 piwik 跟踪电子邮件通讯

javascript - RequestAnimationFrame 在 Safari 中不可用 - 如何制作流畅的动画?

html - 为 div 内的图像启用滚动条

c# - 用于将 CSS 边框属性拆分为多个部分的正则表达式

javascript - React 中的自定义 mailchimp 注册表单

javascript - 根据元素数量划分元素宽度