我已經使用http://buttons.cm/按鈕行高度問題上的Outlook
雖然它應該正確顯示在Outlook中,文本不垂直居中,而是稍微在底部對齊的通訊按鈕。
按鈕的原代碼:
<td align="center" width="70%">
<div><!--[if mso]>
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="http://" style="height:50px;v-text-anchor:middle;width:200px;" arcsize="52%" stroke="f" fillcolor="#0072b9">
<w:anchorlock/>
<center>
<![endif]-->
<a href="http://"
style="background-color:#0072b9;border-radius:26px;color:#ffffff;display:inline-block;font-family:Verdana,sans-serif;font-size:20px;font-weight:normal;line-height:50px;text-align:center;text-decoration:none;width:200px;-webkit-text-size-adjust:none;">Leer más</a>
<!--[if mso]>
</center>
</v:roundrect>
<![endif]--></div>
</td>
它應該如何看(以及如何找上的郵件,例如):
如何它看起來在展望:
我嘗試將高度和行高值更改爲ems或%而不是像素,並添加mso-line-height-rule:exactly
屬性,將行高添加到td
而不是a
標記......沒有運氣!
你試圖使用'height'財產? – vivekkupadhyay
@vivekkupadhyay我使用它作爲vlm版本的按鈕,你可以檢查我提供的代碼示例...那是什麼意思? – ithil
嘗試使用一個簡單的''具有所有必要的屬性和'高度'可能會工作,這通常在我的情況下通常工作。 – vivekkupadhyay