編寫基於outlook顯示的html郵件須要注意的問題

outlook對於html的支持是有限制的,在編寫這些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).
相關文章
相關標籤/搜索