2014-02-19 69 views
0

您好,我有一個簡單的橫幅可以發送電子郵件作爲電子郵件中的簽名。但這不起作用。我從Hotmail發送,並添加簽名中的html代碼。但鏈接不工作也有時佈局令人不安。這裏是我的代碼html通訊在電子郵件中無法正常工作

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
<title>Untitled Document</title> 
</head> 

<body style="margin:0; padding:0;"> 
<table style="margin:0; padding:0;"><tr style="margin:0; padding:0;"><td style="margin:0;" background="http://work.zatechno.com/artzone/background.png" bgcolor="#7bceeb" width="1232" height="195" valign="top"> 
      <!--[if gte mso 9]> 
      <v:rect xmlns:v="urn:schemas-microsoft-com:vml" fill="true" stroke="false" style="width:1232px;height:196px;"> 
      <v:fill type="tile" src="http://work.zatechno.com/artzone/background.png" color="#7bceeb" /> 
      <v:textbox inset="0,0,0,0"> 
      <![endif]--><div style="float:left; margin:100px 0 0 470px; padding:0; position:relative; width:504px; height:94px;"> 
     <div style="float:left; width:242px; height:100%; position:relative"> 
      <a href="#" style="float:left; margin:12px 0 0 7px;"><img src="http://work.zatechno.com/artzone/location.png" alt="" style="float:left" /></a> 
      <div style="clear:both; width:100%; height:1px; float:left"></div> 
      <a href="#" style="float:left; margin:8px 0 0 4px;"><img src="http://work.zatechno.com/artzone/website.png" alt="" style="float:left" /></a> 
      <div style="clear:both; width:100%; height:1px; float:left"></div> 
      <a href="#" style="float:left; margin:12px 0 0 6px;"><img src="http://work.zatechno.com/artzone/email.png" alt="" style="float:left" /></a> 
     </div> 

     <div style="float:right; width:255px; height:100%; position:relative"> 
      <a href="#" style="float:left; margin:12px 0 0 9px;"><img src="http://work.zatechno.com/artzone/phone.png" alt="" style="float:left" /></a> 
      <div style="clear:both; width:100%; height:1px; float:left"></div> 
      <a href="#" style="float:left; margin:10px 0 0 6px;"><img src="http://work.zatechno.com/artzone/social.png" alt="" style="float:left" /></a> 
      <div style="clear:both; width:100%; height:1px; float:left"></div> 
      <a href="#" style="float:left; margin:12px 0 0 42px; padding:0;"><img src="http://work.zatechno.com/artzone/youtube.png" alt="" /></a> 
      <a href="#" style="float:left; margin:12px 0 0 21px; padding:0;"><img src="http://work.zatechno.com/artzone/facebook.png" alt="" /></a> 
      <a href="#" style="float:left; margin:11px 0 0 20px; padding:0;"><img src="http://work.zatechno.com/artzone/twitter.png" alt="" /></a> 
      <a href="#" style="float:left; margin:11px 0 0 21px; padding:0;"><img src="http://work.zatechno.com/artzone/linkedin.png" alt="" /></a> 
      <a href="#" style="float:left; margin:12px 0 0 23px; padding:0;"><img src="http://work.zatechno.com/artzone/instagram.png" alt="" /></a> 
     </div> 

    </div> 
      <!--[if gte mso 9]> 
      </v:textbox> 
      </v:rect> 
      <![endif]--></td></tr></table> 
</body> 
</html> 
+0

我試了一下JSFiddle來處理你的HTML代碼,它工作的很完美。 – HackerKarma

+0

在瀏覽器中它工作正常。但在電子郵件中不適合我。或者我錯了測試。 –

+0

它可能是Hotmail,它可能會覆蓋你的CSS屬性。無法確定。 – HackerKarma

回答

0

哪些電子郵件代理正在失敗,以及如何?也許你可以添加一個或兩個screengrab。恐怕你需要默認基於表格的佈局。電子郵件代理的HTML渲染能力可能相當有限,您最好的選擇是儘可能簡單地保持它。

+0

我們可以在簽名中添加新聞稿嗎?與鏈接。因爲當我從PHP使用郵件功能發送它工作正常。 –

+0

對不起,不知道。 – vector

相關問題