我正在嘗試爲電子郵件模板創建一個藍色按鈕。該電子郵件客戶端Outlook 2007中我瞭解到,它不支持CSS3,所以我寫了這個CSS的按鈕:如何爲Outlook 2007電子郵件模板創建CSS按鈕?
HTML:
<html>
<a id="button" style: "text-decoration: none;" href="">
<span style="color: white;">Button</span>
</a>
<html>
CSS:
#button {
background-color: #4686E8;
border-radius: 10px;
display: block;
width: 142px;
height: 36px;
border-top: 2px #4686E8 solid;
border-bottom: 2px #4686E8 solid;
border-left: 2px #4686E8 solid;
border-right: 2px #4686E8 solid;
cursor: pointer;
padding: 14px;
}
某些屬性,例如border-radius和width/height在電子郵件模板中不起作用。它只是顯示一個藍色框,上面有文字「按鈕」。如何在Outlook 2007模板中創建形狀按鈕?
您可以將樣式設置爲**內聯** – Vishnu