Outlook中的图像未调整大小 [英] Image in outlook is not resizing

查看:148
本文介绍了Outlook中的图像未调整大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<tr>
      <img src="Prototype_ImageSrcForDemo" height="150px" width="150px"></img>
    </tr>



HTML上方是我使用SmtpClient发送的一封电子邮件的一部分.没问题.

问题在于尺寸调整部分.如上面的代码片段所示;如果我的图像很大,则不会对其应用高度和宽度,因此原始大小的图像会显示在Outlook中的邮件中.但是,如果我在浏览器/Web邮件中看到相同的电子邮件,则会正确调整图像的大小.
谁能帮我解决这个问题?



Above HTML is part of one email which I am sending using SmtpClient. No issues in it.

Problem is with the resizing part. As shown in the above code snippet; if my image is big, height and width are not getting applied to it hence original sized image is getting displayed in the mail in Outlook. However if I see same email in browser/Web mail, image gets re sized correctly.
Can anyone help me figure out this issue?

推荐答案

我在我的c#邮件程序中以这种方式使用它没有问题



I use it this way in my c# mailer program with no problems



<img src="Img.jpg" width="795" height="669" galleryimg="no"></img>



您也可以尝试使用Style标签



you could as well try to do it with the Style tag


这篇关于Outlook中的图像未调整大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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