在Outlook 2007邮件上呈现HTML图像

时间:2021-12-06 22:48:16

I am receiving HTML newsletter as emails using Microsoft Outlook 2007. There are several images in the email which are arranged using 'width' and 'height' attributes of the 'img' tag.

我收到HTML通讯作为电子邮件使用Microsoft Outlook 2007。邮件中有几张图片是用“img”标签的“宽度”和“高度”属性排列的。

When I try to open the html code in any browser, the images and text are arranged properly. But on Outlook 2007, it gets messed up and the images shows up in random sizes even though height and width are given explicitly in the HTML code.

当我尝试在任何浏览器中打开html代码时,图像和文本都被适当地安排好了。但是在Outlook 2007中,它变得混乱,图像以随机大小显示,即使在HTML代码中显式地给出了高度和宽度。

Can anyone tell me how to get the images displayed properly in the Outlook 2007 so that the formatting does not get messed up?

谁能告诉我如何在Outlook 2007中正确显示图像,以免格式混乱?

3 个解决方案

#1


7  

For Outlook,

对于前景,

<img style="height:30; width:.."/>

does not work.

不工作。

One has to give like:

一个人必须给予:

<img height="30" width="70" .../>

#2


4  

I think I have a solution: Go to Word > Word options > Advanced > General / Web options > Pictures: If target monitor has the value 72 for pixels per inch, change this to 96. Restart Word & Outlook.

我想我有一个解决方案:到> Word选项>高级>通用/ Web选项>图片:如果目标显示器的像素值为每英寸72像素,那么将其改为96。重新启动词和前景。

This finally fixed it for me. Hope it helps.

这终于帮我搞定了。希望它可以帮助。

#3


2  

Outlook 2007 seems respects the actual width and height of the image over the declared width and height of the image in cases where the declared width or height of the image is close to or equal to 0. (And Outlook does not respect the width and height css attributes at all.) Your best bet is to re-size the images in question so that they actually have the height and width you declare, rather than re-sizing them.

Outlook 2007似乎尊重图像的实际宽度和高度比声明的图像宽度和高度,如果声明的图像宽度或高度接近或等于0。(Outlook完全不考虑css的宽度和高度属性。)你最好的办法是重新调整图片的大小,使它们具有你声明的高度和宽度,而不是重新调整它们的大小。

#1


7  

For Outlook,

对于前景,

<img style="height:30; width:.."/>

does not work.

不工作。

One has to give like:

一个人必须给予:

<img height="30" width="70" .../>

#2


4  

I think I have a solution: Go to Word > Word options > Advanced > General / Web options > Pictures: If target monitor has the value 72 for pixels per inch, change this to 96. Restart Word & Outlook.

我想我有一个解决方案:到> Word选项>高级>通用/ Web选项>图片:如果目标显示器的像素值为每英寸72像素,那么将其改为96。重新启动词和前景。

This finally fixed it for me. Hope it helps.

这终于帮我搞定了。希望它可以帮助。

#3


2  

Outlook 2007 seems respects the actual width and height of the image over the declared width and height of the image in cases where the declared width or height of the image is close to or equal to 0. (And Outlook does not respect the width and height css attributes at all.) Your best bet is to re-size the images in question so that they actually have the height and width you declare, rather than re-sizing them.

Outlook 2007似乎尊重图像的实际宽度和高度比声明的图像宽度和高度,如果声明的图像宽度或高度接近或等于0。(Outlook完全不考虑css的宽度和高度属性。)你最好的办法是重新调整图片的大小,使它们具有你声明的高度和宽度,而不是重新调整它们的大小。