简体   繁体   中英

HTML Images Rendering on Outlook 2007 mails

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.

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.

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

For Outlook,

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

does not work.

One has to give like:

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

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.

This finally fixed it for me. Hope it helps.

Outlook 2007中似乎方面在图像的情况下,中声明的宽度和高度在图像的声明宽度或高度接近或等于0(和Outlook不尊重实际宽度和图像的高度widthheight CSS属性都没有 。)你最好的选择是重新大小的图像问题,使他们实际上拥有高度和宽度声明,而不是重新大小他们。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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