【问题标题】:Image always displays with its actual dimensions in Outlook图像在 Outlook 中始终以其实际尺寸显示
【发布时间】:2013-03-17 06:15:35
【问题描述】:

我正在通过电子邮件发送一个 asp.net 网页,在 Gmail、Yahoo 和 Hotmail 中一切正常,但在 Outlook 中,徽标图像以其实际宽度和高度显示。自定义宽度和高度不适用。这是outlook view 这是the gmail view 这是标记,网址是从后面的代码分配的

<table border="0" 
       cellpadding="0" 
       cellspacing="0" 
       width="167" 
       style="width: 167px; padding: 3px 0 7px 60px; height: 132px;">
  <tbody>
    <tr>
      <td valign="top" style="width: 127px; height: 104px;">
        <div style="padding-top: 20px;">
          <asp:Image ID="imgLogo" 
                     runat="server" 
                     Width="125" Height="100"  
                     BorderColor="Gray" 
                     BorderStyle="Solid" 
                     BorderWidth="1px" />
        </div>
      </td>
    </tr>
  </tbody>
</table>

【问题讨论】:

  • 你能显示生成的标记吗?

标签: asp.net html css email outlook


【解决方案1】:

尝试在属性 width 和 height 之后添加“px”。我认为是问题所在。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-01-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-07-01
    相关资源
    最近更新 更多