Outlook 表格宽度问题中的 HTML 电子邮件 - 内容比指定的表格宽度宽 [英] HTML email in outlook table width issue - content is wider than the specified table width

查看:48
本文介绍了Outlook 表格宽度问题中的 HTML 电子邮件 - 内容比指定的表格宽度宽的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 HTML 电子邮件模板在 Gmail、Apple Mail 和 iOS Mail 中正常显示,没有出现重大问题.然而,Outlook 是一个可怕的混乱,我一生都无法弄清楚我做错了什么???

我的电子邮件模板没有使用任何过于疯狂的 css 并使用表格进行布局,我对所有内容都有固定的像素宽度.

问题是,尽管我将容器设置为 580 像素,内部内容设置为 450 像素,但布局中的每个表格都拉伸到了 100%.

代码:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><头><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><!-- Facebook分享信息标签--><meta property="og:title" content="*|MC:SUBJECT|*"/><title>*|MC:SUBJECT|*</title><style type="text/css">/* 客户端特定样式 */#outlook a{padding:0;}/* 强制 Outlook 提供在浏览器中查看"按钮.*/body{width:100% !important;}/* 强制 Hotmail 以全宽显示电子邮件 */body{-webkit-text-size-adjust:none;}/* 防止 Webkit 平台更改默认文本大小.*//* 重置样式 */正文{边距:0;填充:0;}img{边框:无;字体大小:14px;字体粗细:粗体;高度:自动;行高:100%;大纲:无;文字装饰:无;文本转换:大写;}</风格><body bgcolor="#444444"><中心><table border="0" cellpadding="0" cellspacing="0" width="580px" style="background-color: #0290ba;"><tr><td align="center" valign="top"><img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/header.png" width="580px"/></td></tr><tr><td align="center" valign="top"><table border="0" cellpadding="0" cellspacing="0" width="450px"><tr><td align="center" valign="top" width="450px"><br/><img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/hello_header.png" width="450px"/></td></tr><table border="0" cellpadding="0" cellspacing="0" width="450px"><tr><td align="center" valign="top" width="214px"><br/><div style="color:#004c63; font-family: Georgia, serif; font-size: 17px; line-height:100%; text-align:left; font-style: italic;">我们将自己视为您业务中的合作伙伴,其特定目的是使您的利润增长.

</td><td width="236px"></td></tr><table border="0" cellpadding="0" cellspacing="0" width="450px"><tr><td align="center" valign="top" width="214px"><p style="line-height: 150%; color: #FFFFFF; text-align: justify; font-size: 10px;">在过去的 2 1/2 年里,我们一直非常忙于启动和运行我们的业务,忙于为我们的客户开展日常和长期项目.但我们注意到并不是每个人都知道我们所做的所有很酷(不是很酷但同样重要)的事情.所以我们要炫耀一下,告诉你更多关于我们所做的事情,这样你就可以从我们广泛的技能、服务和经验中受益.这封电子邮件是该过程的开始:我们将向您展示一个小(我们不想用太多东西惹恼您)但每个 <!-- 月的多样化项目选择,希望能激发您的灵感.然后,如果您想了解有关我们如何为您做类似事情的任何信息或想法,请告诉我们 - 我们很乐意提供帮助!我们也在为自己建立一个新网站(最终) - 我们会在网站上线时通知您,但同时请查看我们的临时页面 - 在这里.--></p></td><td width="236px"><p style="line-height: 150%; color: #FFFFFF; text-align: justify; font-size: 10px;"><img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/world-icon-image.png" width="110%" style="margin-left: 20px;"/></p><br/></td></tr></td></tr><tr style="background-color: #d82445;"><td align="center" valign="top"><img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/divider_showcase.png" width="580px"/></td></tr><tr style="background-color: #d82445;"><td align="center" valign="top"><table border="0" cellpadding="0" cellspacing="0" width="450px"><tr><td>&nbsp;</td></tr><tr><td valign="top" width="124px"><img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/showcase_image1.png" width="124px"/></td><td width="10px"></td><td><table border="0" cellpadding="0" cellspacing="0" width="316px"><tr><td valign="top"><div style="color:#6c1e2c; font-family: Georgia, serif; font-size: 17px; line-height:100%; text-align:left; font-style: italic; font-weight: 500;>标题在这里

</td></tr><tr><td valign="top" width="150px"><p style="line-height: 150%; color: #FFFFFF; text-align: justify; font-size: 10px;">Sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.Ut wisi enim ad minim veniam, quis nostrud exerciation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.杜伊斯奥特姆.</p></td><td width="10px"></td><td valign="top" width="160px"><p style="margin-top: 20px;"><a href="#"><img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/button_showcase_forward.png" style="margin-top:-10px;"/></a><br/><br/><a href="#"><img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/button_showcase_moreinfo.png"/></a></p></td></tr></td></tr><tr><td>&nbsp;</td></tr><tr><td valign="top" width="124px"><img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/showcase_image1.png" width="124px"/></td><td width="10px"></td><td><table border="0" cellpadding="0" cellspacing="0" width="316px"><tr><td valign="top"><div style="color:#6c1e2c; font-family: Georgia, serif; font-size: 17px; line-height:100%; text-align:left; font-style: italic; font-weight: 500;>标题在这里

</td></tr><tr><td valign="top" width="150px"><p style="line-height: 150%; color: #FFFFFF; text-align: justify; font-size: 10px;">Sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.Ut wisi enim ad minim veniam, quis nostrud exerciation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.杜伊斯奥特姆.</p></td><td width="10px"></td><td valign="top" width="160px"><p style="margin-top: 20px;"><a href="#"><img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/button_showcase_forward.png" style="margin-top:-10px;"/></a><br/><br/><a href="#"><img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/button_showcase_moreinfo.png"/></a></p></td></tr></td></tr><tr><td>&nbsp;</td></tr><tr><td valign="top" width="124px"><img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/showcase_image1.png" width="124px"/></td><td width="10px"></td><td><table border="0" cellpadding="0" cellspacing="0" width="316px"><tr><td valign="top"><div style="color:#6c1e2c; font-family: Georgia, serif; font-size: 17px; line-height:100%; text-align:left; font-style: italic; font-weight: 500;>标题在这里

</td></tr><tr><td valign="top" width="150px"><p style="line-height: 150%; color: #FFFFFF; text-align: justify; font-size: 10px;">Sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.Ut wisi enim ad minim veniam, quis nostrud exerciation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.杜伊斯奥特姆.</p></td><td width="10px"></td><td valign="top" width="160px"><p style="margin-top: 20px;"><a href="#"><img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/button_showcase_forward.png" style="margin-top:-10px;"/></a><br/><br/><a href="#"><img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/button_showcase_moreinfo.png"/></a></p></td></tr></td></tr><tr><td>&nbsp;</td></tr><br/></td></tr><tr style="background-color: #fdac57;"><td align="center" valign="top"><img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/divider_footer.png" width="580px"/></td></tr><tr style="background-color: #fdac57;"><td align="center" valign="top"><table width="450px" align="center" cellspacing="0" cellpadding="0" border="0"><tr><td><表格><tr><td>&nbsp;</td></tr><tr><td valign="top" width="215px"><div style="color:#6c1e2c; font-family: Georgia, serif; font-size: 17px; line-height:100%; text-align:left; font-style: italic; font-weight: 500;>给我们留言,<br/>访问我们的网站,或 <br/>将此转发给朋友.

</td><td valign="top" width="40px">&nbsp;</td><td valign="top" width="195px"><div style="color:#6c1e2c; font-family: Georgia, serif; font-size: 17px; line-height:100%; text-align:left; font-style: italic; font-weight: 500;>取得联系 <br/>今天 - 你会<br/>喜欢和我们一起工作

</td></tr><tr><td valign="top" width="215px"><p style="line-height: 150%; color: #FFFFFF; text-align: justify; font-size: 10px;">如果是奇怪的时间,请不要担心,请留言,我们会在您方便的时候回复您.</p></td><td valign="top" width="40px">&nbsp;</td><td valign="top" width="195px"><p style="line-height: 150%; color: #FFFFFF; text-align: justify; font-size: 10px;">163 Bateau Bay Rd, Bateau Bay, <br/>新南威尔士州 2261, <br/>澳大利亚</p></td></tr><tr><td valign="bottom" width="215px"><p style="line-height: 150%; color: #FFFFFF; text-align: justify; font-size: 10px;"><a href="#"><img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/icons/twitter.png" style="padding:0; 右边距:5px; 边距:0;"/></a><a href="#"><img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/icons/facebook.png" style="padding:0; 右边距:5px; 边距:0;"/></a><a href="#"><img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/icons/vimeo.png" style="padding:0; 右边距:5px; 边距:0;"/></a><a href="#"><img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/icons/instagram.png" style="padding:0; 右边距:5px; 边距:0;"/></a></p></td><td valign="top" width="40px">&nbsp;</td><td valign="top" width="195px"><p style="line-height: 150%; color: #FFFFFF; text-align: justify; font-size: 10px;">-- --- ----, ------ --- --- ---- <br/>+--- - ---- ---- <br/>----@--------.com <br/>--------.com <br/></p></td></tr><br/><表格宽度="450px"><tr><td width="144px" align="center"><a href="#"><img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/button_footer_forward.png"/></a></td><td width="6px">&nbsp;</td><td width="144px" align="center"><a href="#"><img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/button_footer_visit.png"/></a></td><td width="6px">&nbsp;</td><td width="144px" align="center"><a href="#"><img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/button_footer_getintouch.png"/></a></td></tr><br/></td></tr></td></tr><tr style="background-color: #FDFDFD;"><td align="center" valign="top"><br/><img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/logo.png"/><br/><p style="line-height: 150%; color: #000000; text-align: center; font-size: 10px;">&copy;版权所有 2013 HicksAds - 带着爱发送 :)</p></td></tr></中心>

非常感谢任何帮助,就像难以置信的感激..

解决方案

我猜问题是在表格中的宽度属性,例如 td 删除 'px'

应该

My HTML email template is displaying correctly without major problems in Gmail, Apple Mail and iOS Mail. Outlook however is a horrifying mess and I can't for the life of me figure out what I've done wrong???

My email template is not using any overly crazy css and uses tables for the layout, I have fixed pixel widths for everything.

The problem is every table in my layout stretches to 100% despite me setting it to 580px for the container and 450px for the inner content.

THE CODE:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <!-- Facebook sharing information tags -->
        <meta property="og:title" content="*|MC:SUBJECT|*" /><title>*|MC:SUBJECT|*</title>
        <style type="text/css">
            /* Client-specific Styles */
            #outlook a{padding:0;} /* Force Outlook to provide a "view in browser" button. */
            body{width:100% !important;} /* Force Hotmail to display emails at full width */
            body{-webkit-text-size-adjust:none;} /* Prevent Webkit platforms from changing default text sizes. */

            /* Reset Styles */
            body{margin:0; padding:0;}
            img{border:none; font-size:14px; font-weight:bold; height:auto; line-height:100%; outline:none; text-decoration:none; text-transform:capitalize;}
        </style>
    </head>
    <body bgcolor="#444444">
        <center>
            <table border="0" cellpadding="0" cellspacing="0" width="580px" style="background-color: #0290ba;">
                <tr>
                    <td align="center" valign="top">
                <img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/header.png" width="580px" />
                    </td>
                </tr>
                <tr>
                    <td align="center" valign="top">
                        <table border="0" cellpadding="0" cellspacing="0" width="450px">
                                <tr>
                                    <td align="center" valign="top" width="450px">
                                        <br />
                                        <img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/hello_header.png" width="450px" />
                                    </td>
                                </tr>
                            </table>
                            <table border="0" cellpadding="0" cellspacing="0" width="450px">
                                <tr>
                                    <td align="center" valign="top" width="214px">
                                        <br />
                                        <div style="color:#004c63; font-family: Georgia, serif; font-size: 17px; line-height:100%; text-align:left; font-style: italic;">
                                            We consider ourselves partners in your business with the specific purpose of making your profit grow.
                                        </div>
                                    </td>
                                    <td width="236px"></td>
                                </tr>
                            </table>
                            <table border="0" cellpadding="0" cellspacing="0" width="450px">
                                <tr>
                                    <td align="center" valign="top" width="214px">
                                        <p style="line-height: 150%; color: #FFFFFF; text-align: justify; font-size: 10px;">
                                            We have been pretty busy for the last 2 1/2 years getting our business up and running, busy doing day to day and long term projects for our clients. But it's come to our attention not everyone is aware of all the cool (and not so cool but just as important) things we do. So we're going to show off a bit, tell you a bit more about what we do so you can benefit from our wide range of skills, services and experiences. This email is the start of that process: we're going to show you a small (we don't want to annoy you with too much stuff) but diverse selection of projects each <!-- month to hopefully inspire you. Then if you want any information or ideas on how we could do something similar for you just let us know - we'd love to help! We are also in the process of building ourselves a new web site (finally) - we'll let you know when its live but check out our temporary page in the mean time - here. -->
                                        </p>
                                    </td>
                                    <td width="236px">
                                        <p style="line-height: 150%; color: #FFFFFF; text-align: justify; font-size: 10px;">
                                            <img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/world-icon-image.png" width="110%" style="margin-left: 20px;" />
                                        </p>
                                        <br />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr style="background-color: #d82445;">
                        <td align="center" valign="top">
                            <img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/divider_showcase.png" width="580px" />
                        </td>
                    </tr>
                    <tr style="background-color: #d82445;">
                        <td align="center" valign="top">
                            <table border="0" cellpadding="0" cellspacing="0" width="450px">
                                <tr>
                                    <td>&nbsp;</td>
                                </tr>
                                <tr>
                                    <td valign="top" width="124px">
                                        <img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/showcase_image1.png" width="124px" />
                                    </td>
                                    <td width="10px"></td>
                                    <td>
                                        <table border="0" cellpadding="0" cellspacing="0" width="316px">
                                            <tr>
                                                <td valign="top">
                                                    <div style="color:#6c1e2c; font-family: Georgia, serif; font-size: 17px; line-height:100%; text-align:left; font-style: italic; font-weight: 500;">
                                                        Title Goes Here
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td valign="top" width="150px">
                                                    <p style="line-height: 150%; color: #FFFFFF; text-align: justify; font-size: 10px;">
                                                        Sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem .
                                                    </p>
                                                </td>
                                                <td width="10px"></td>
                                                <td valign="top" width="160px">
                                                    <p style="margin-top: 20px;">
                                                        <a href="#"><img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/button_showcase_forward.png" style="margin-top: -10px;" /></a>

                                                        <br />
                                                        <br />

                                                        <a href="#"><img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/button_showcase_moreinfo.png" /></a>
                                                    </p>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td>&nbsp;</td>
                                </tr>
                                <tr>
                                    <td valign="top" width="124px">
                                        <img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/showcase_image1.png" width="124px" />
                                    </td>
                                    <td width="10px"></td>
                                    <td>
                                        <table border="0" cellpadding="0" cellspacing="0" width="316px">
                                            <tr>
                                                <td valign="top">
                                                    <div style="color:#6c1e2c; font-family: Georgia, serif; font-size: 17px; line-height:100%; text-align:left; font-style: italic; font-weight: 500;">
                                                        Title Goes Here
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td valign="top" width="150px">
                                                    <p style="line-height: 150%; color: #FFFFFF; text-align: justify; font-size: 10px;">
                                                        Sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem .
                                                    </p>
                                                </td>
                                                <td width="10px"></td>
                                                <td valign="top" width="160px">
                                                    <p style="margin-top: 20px;">
                                                        <a href="#"><img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/button_showcase_forward.png" style="margin-top: -10px;" /></a>

                                                        <br />
                                                        <br />

                                                        <a href="#"><img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/button_showcase_moreinfo.png" /></a>
                                                    </p>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td>&nbsp;</td>
                                </tr>
                                <tr>
                                    <td valign="top" width="124px">
                                        <img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/showcase_image1.png" width="124px" />
                                    </td>
                                    <td width="10px"></td>
                                    <td>
                                        <table border="0" cellpadding="0" cellspacing="0" width="316px">
                                            <tr>
                                                <td valign="top">
                                                    <div style="color:#6c1e2c; font-family: Georgia, serif; font-size: 17px; line-height:100%; text-align:left; font-style: italic; font-weight: 500;">
                                                        Title Goes Here
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td valign="top" width="150px">
                                                    <p style="line-height: 150%; color: #FFFFFF; text-align: justify; font-size: 10px;">
                                                        Sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem .
                                                    </p>
                                                </td>
                                                <td width="10px"></td>
                                                <td valign="top" width="160px">
                                                    <p style="margin-top: 20px;">
                                                        <a href="#"><img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/button_showcase_forward.png" style="margin-top: -10px;" /></a>

                                                        <br />
                                                        <br />

                                                        <a href="#"><img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/button_showcase_moreinfo.png" /></a>
                                                    </p>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td>&nbsp;</td>
                                </tr>
                            </table>
                            <br />
                        </td>
                    </tr>
                    <tr style="background-color: #fdac57;">
                        <td align="center" valign="top">
                            <img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/divider_footer.png" width="580px" />
                        </td>
                    </tr>
                    <tr style="background-color: #fdac57;">
                        <td align="center" valign="top">
                            <table width="450px" align="center" cellspacing="0" cellpadding="0" border="0">
                                <tr>
                                    <td>
                                        <table>
                                            <tr>
                                                <td>&nbsp;</td>
                                            </tr>
                                            <tr>
                                                <td valign="top" width="215px">
                                                    <div style="color:#6c1e2c; font-family: Georgia, serif; font-size: 17px; line-height:100%; text-align:left; font-style: italic; font-weight: 500;">
                                                        Drop us a line, <br />
                                                        visit our website, or <br />
                                                        forward this to a friend.
                                                    </div>
                                                </td>
                                                <td valign="top" width="40px">
                                                    &nbsp;
                                                </td>
                                                <td valign="top" width="195px">
                                                    <div style="color:#6c1e2c; font-family: Georgia, serif; font-size: 17px; line-height:100%; text-align:left; font-style: italic; font-weight: 500;">
                                                        Get in touch <br />
                                                        today - You’ll <br />
                                                        love working with us
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td valign="top" width="215px">
                                                    <p style="line-height: 150%; color: #FFFFFF; text-align: justify; font-size: 10px;">
                                                        Don’t worry if it's an odd hour, leave a message and we will get back to you at your convenience.
                                                    </p>
                                                </td>
                                                <td valign="top" width="40px">
                                                    &nbsp;
                                                </td>
                                                <td valign="top" width="195px">
                                                    <p style="line-height: 150%; color: #FFFFFF; text-align: justify; font-size: 10px;">
                                                        163 Bateau Bay Rd, Bateau Bay, <br />
                                                        NSW 2261, <br />
                                                        Australia
                                                    </p>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td valign="bottom" width="215px">
                                                    <p style="line-height: 150%; color: #FFFFFF; text-align: justify; font-size: 10px;">
                                                        <a href="#"><img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/icons/twitter.png" style="padding:0; padding-right: 5px; margin: 0;" /></a>
                                                        <a href="#"><img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/icons/facebook.png" style="padding:0; padding-right: 5px; margin: 0;" /></a>
                                                        <a href="#"><img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/icons/vimeo.png" style="padding:0; padding-right: 5px; margin: 0;" /></a>
                                                        <a href="#"><img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/icons/instagram.png" style="padding:0; padding-right: 5px; margin: 0;" /></a>
                                                    </p>
                                                </td>
                                                <td valign="top" width="40px">
                                                    &nbsp;
                                                </td>
                                                <td valign="top" width="195px">
                                                    <p style="line-height: 150%; color: #FFFFFF; text-align: justify; font-size: 10px;">
                                                        -- --- ----, ------ --- --- ---- <br />
                                                        +-- - ---- ---- <br />
                                                        ----@--------.com <br />
                                                        --------.com <br />
                                                    </p>
                                                </td>
                                            </tr>
                                        </table>
                                        <br />
                                        <table width="450px">
                                            <tr>
                                                <td width="144px" align="center">
                                                    <a href="#"><img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/button_footer_forward.png" /></a>
                                                </td>
                                                <td width="6px">&nbsp;</td>
                                                <td width="144px" align="center">
                                                    <a href="#"><img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/button_footer_visit.png" /></a>
                                                </td>
                                                <td width="6px">&nbsp;</td>
                                                <td width="144px" align="center">
                                                    <a href="#"><img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/button_footer_getintouch.png" /></a>
                                                </td>
                                            </tr>
                                        </table>
                                        <br />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr style="background-color: #FDFDFD;">
                        <td align="center" valign="top">
                            <br />
                            <img alt="" src="http://dev.adrian-brown.com/hicks-ads/images/logo.png" /> <br />
                            <p style="line-height: 150%; color: #000000; text-align: center; font-size: 10px;">&copy; Copyright 2013 HicksAds - Sent With love :)</p>
                        </td>
                    </tr>
                </table>
            </center>
        </body>
    </html>

Any help is greatly appreciated, like unbelievably appreciated..

解决方案

I guess problem is in width attributes in table and td remove 'px' for example

<table border="0" cellpadding="0" cellspacing="0" width="580px" style="background-color: #0290ba;">

Should be

<table border="0" cellpadding="0" cellspacing="0" width="580" style="background-color: #0290ba;">

这篇关于Outlook 表格宽度问题中的 HTML 电子邮件 - 内容比指定的表格宽度宽的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆