开发者

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 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜