[英]Outlook 2013 HTML email overlapping text issue
我遇到一個包含圖像和標題的嵌套表的問題,其中旁邊的內嵌文本被Outlook 2013中的某些空白所覆蓋。
屏幕在這里:
這是我的代碼:
<td class="post" align="left" style="padding-right:18px;">
<!--<a name="2013310049996"></a>-->
<font style="font-family:Georgia,serif;color:#585555;font-size:22px;font-weight:bold;line-height:25px;display:block;float:left;padding-bottom:12px;"><a href="http://www.modernhealthcare.com/article/20131004/BLOG/310049996?AllowView=VW8xUmo5Q21TcWJOb1gzb0tNN3RLZ0h0MWg5SVgra3NZRzROR3l0WWRMWGFWUDBGRWxyd01qUzMyWmFyNTNnWUpiV24=&utm_source=link-20131004-BLOG-310049996&utm_medium=email&utm_campaign=dose" target="_blank" style="font-family:Georgia,serif;color:#585555;font-size:22px;text-decoration:none;font-weight:bold;line-height:25px;"><span style="font-family:Georgia,serif;color:#585555;font-size:22px;text-decoration:none;font-weight:bold;line-height:25px;">MemorialCare, UC Irvine announce plan to open primary-care centers—with interoperability</span></a></font>
<table width="100%" bgcolor="#ffffff" callpadding="0" cellspacing="0" border="0" valign="top" align="center" style="border-spacing:0;border-collapse:collapse;margin:0;padding:0;background-color:#ffffff;"><tr><td width="100%" height="4"></td></tr></table>
<table width="102" bgcolor="#ffffff" cellpadding="0" cellspacing="0" border="0" valign="top" align="left" style="border-spacing:0;border-collapse:collapse;margin:0;padding:0;background-color:#ffffff;text-align:left;margin-right:12px;">
<tr>
<td valign="top">
<img src="http://www.modernhealthcare.com/apps/pbcsi.dll/storyimage/CH/20131004/BLOG/310049996/AR/0/AR-310049996.jpg?cci_ts=20131004141411&MaxW=90&MaxH=125&border=0" border="0" alt="" style="line-height:50%;margin:0;padding:0;margin-bottom:6px;" />
</td>
<tr>
</table>
<font style="font-family:Arial,Helvetica,sans-serif;color:#7b7a77;font-size:14px;line-height:17px;">
<!-- SUMMARY -->
There has been a lot of complaining lately about the lack of interoperability in healthcare information technology and how the inability of computers to communicate with each other impedes organizing population health-improvement systems. But two Southern California organizations that just announced a deal to open a string of primary-care health centers said interoperability concerns will not stand in the way.
<!-- FULL STORY LINK-->
<br/><a style="font-family:Arial,Helvetica,sans-serif;color:#1f5591;font-size:14px;text-decoration:none;font-weight:bold;line-height:17px;" target="_blank" href="http://www.modernhealthcare.com/article/20131004/BLOG/310049996?AllowView=VW8xUmo5Q21TcWJOb1gzb0tNN3RLZ0h0MWg5SVgra3NZRzROR3l0WWRMWGFWUDBGRWxyd01qUzMyWmFyNTNnWUpiV24=&utm_source=link-20131004-BLOG-310049996&utm_medium=email&utm_campaign=dose&utm_source=link-20131004-BLOG-310049996&utm_medium=email&utm_campaign=dose"><span style="font-family:Arial,Helvetica,sans-serif;color:#1f5591;font-size:14px;text-decoration:none;font-weight:bold;line-height:17px;">FULL STORY <span style="color:#56c7a3;font-size:16px;font-weight:bold;">»</span></span></a>
<!-- BYLINE -->
<br/><span style="font-family:Georgia,serif;color:#858585;font-size:14px;text-decoration:none;font-weight:bold;font-style:italic;line-height:17px;"><a style='font-family:Georgia,serif;color:#858585;font-size:14px;text-decoration:none;font-weight:bold;font-style:italic;line-height:17px;' href="mailto:arobeznieks@modernhealthcare.com">Andis Robeznieks</a><span style="font-family:Arial,Helvetica,sans-serif;font-style:normal;color:#56c7a3;font-size:16px;font-weight:bold;"> »</span></span>
</font>
Outlook不支持保證金。 嘗試改用padding。
另外,在圖像上聲明寬度和高度可能會有所幫助。
display: inline-block
padding-right: 6px
display: inline-block
和padding-right: 6px
<img>
上的padding-right: 6px
我看到了一些潛在的問題,盡管我從未讓Outlook在其他元素上顯示任何東西。
1-在img
標簽上,將line-height
設置為50%。 為什么?
2-我假設您在圖像上方有一個空的TD,作為一個間隔物。 在那一點上,您應該將樣式屬性設置為line-height:4px; font-size:4px;
line-height:4px; font-size:4px;
,並拋出
在td
。 否則,Outlook 2013將使您的空白單元格高15px。
3-不要嵌套您的span
標簽。 關閉一個,啟動另一個。
4-您的圖片確實需要display:inline-block;
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.