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

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

  1. Never use colspans or rowspans.
  2. Always set correct dimensions for your tables and cells.
  3. Use spacer gifs rather than &nbps;.
  4. Always specify correct image sizes and never scale images up or down.
  5. Always add style="display:block;" to images.
  6. Avoid using divs.
  7. If you wish to colour links, put the styling on a span as a child inside the a tag.
  8. Don't use italics.
  9. Don't use BRs for layout, always use tables.
  10. Use BRs in Text, not Ps (to avoid stange margin problems and paragraphing being completely ignored).
posted @ 2013-08-17 09:53  freeman_rain  阅读(1607)  评论(0编辑  收藏  举报