简体   繁体   English

Outlook中对齐文本不应该

[英]Outlook middle aligning text it should not be

I have the following code (is for campaign monitor): 我有以下代码(用于广告系列监控器):

Left Image: 左图:

<table cellspacing="0" border="0" cellpadding="0" valign="top">
    <tr>
        <td class="content" valign="top" height="200"
            style="padding: 0 20px 20px 20px; color: #333; font-size: 14px; line-height: 20px; font-family: Helvetica, Arial, sans-serif"
            width="600">
            <img src="./images/logo.gif" alt=""
                 width="260" align="left"
                 editable="true" hspace="10"
                 label="Image"/>
            <multiline label="Description">Enter your
                description here.
            </multiline>
            <span class="button">
                <singleline label="Link">Link</singleline>
            </span>
        </td>
    </tr>
</table>

Right Image: 右图:

<table cellspacing="0" border="0" cellpadding="0" valign="top">
    <tr>
        <td class="content" valign="top" height="200"
            style="padding: 0 20px 20px 20px; color: #333; font-size: 14px; line-height: 20px; font-family: Helvetica, Arial, sans-serif"
            width="600">
            <img src="./images/logo.gif" alt=""
                 width="260" align="right"
                 editable="true" hspace="10"
                 label="Image"/>
            <multiline label="Description">Enter your
                description here.
            </multiline>
            <span class="button">
                <singleline label="Link">Link</singleline>
            </span>
        </td>
    </tr>
</table>

On Outlook The text next to the image is middle aligning with the image when it should be top aligning. 在Outlook上,图像旁边的文本应与图像居中对齐,以使其顶部对齐。

All other clients appear to be fine. 所有其他客户端似乎都很好。

Have you tried adding vertical-align: top; 您是否尝试过添加vertical-align:top; to the style attribute within the td instead of using the attribute valign? 到td中的style属性,而不是使用valign属性?

Also maybe move the height to the style attribute to. 也可以将高度移至style属性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM