jingshen 发表于 2015-9-14 09:36:48

编写基于outlook显示的html邮件需要注意的问题

  outlook对于html的支持是有限制的,在编写这些html的时候注意遵循以下规则:

[*]Never use colspans or rowspans.
[*]Always set correct dimensions for your tables and cells.
[*]Use spacer gifs rather than &nbps;.
[*]Always specify correct image sizes and never scale images up or down.
[*]Always add style="display:block;" to images.
[*]Avoid using divs.
[*]If you wish to colour links, put the styling on a span as a child inside the a tag.
[*]Don't use italics.
[*]Don't use BRs for layout, always use tables.
[*]Use BRs in Text, not Ps (to avoid stange margin problems and paragraphing being completely ignored).
页: [1]
查看完整版本: 编写基于outlook显示的html邮件需要注意的问题