HTML:的Html不包括電子郵件正確顯示
<div id="container">
<div id="social-links">
<img src="http://www.collegify.com/emailer/roads/delhi/images/Promotional_03.jpg" alt="">
www.twitter.com/roadsprep
<br />
<img src="http://www.collegify.com/emailer/roads/delhi/images/Promotional_09.jpg" alt="">
www.facebook.com/roadsprep
</div>
<div id="website-link">www.roadsprep.com</div>
<div id="now-at-gurgaon">
NOW AT
<BR />
GURGAON
</div>
<div id="gray-box">
We specialize in
<br />
SAT, GRE, GMAT, ACT
<br />
IELTS and TOEFL coaching!
</div>
<div id="pointers">
<ul>
<li>Over 6 years of Test Prep Experience!</li>
<li>Over 300 students with 2100 + scores</li>
<li>On average, an improvement of 400 point improvement in scores</li>
</ul>
</div>
<div id="contact-info">
<strong>Roads Academy Private Limited</strong>
<br />
Office No. 4001, Basement, DLF Phase IV, Near, Galleria Market, Gurgaon - 122 009, Haryana
<br />
<strong>Phone:</strong>
+91 85100 66662
<strong>Email:</strong>
[email protected]
</div>
</div>
CSS:
* {
font-family: 'Open Sans Condensed', sans-serif;
}
#container {
background-image: url(http://www.collegify.com/emailer/roads/delhi/images/Promotional-Flyer-for-Delhi-Front-1.jpg);
background-repeat: no-repeat;
width: 600px;
height: 910px;
margin: 0 auto;
padding-top: 31px;
}
#social-links {
margin: 0 0 0 32px;
float: left;
width: 200px;
height: 57px;
font-size: 13px;
font-weight: bold;
}
#website-link {
margin: 0 21px 0 0;
float: right;
width: 200px;
text-align: right;
font-size: 22px;
font-weight: bold;
}
#now-at-gurgaon {
margin: 230px 0 0 128px;
color: #454b4f;
font-size: 25px;
font-weight: bold;
text-align: center;
width: 181px;
line-height: 22px;
font-family: Arial, Helvetica, sans-serif;
}
#gray-box {
background-color: #454a4e;
width: 280px;
height: 80px;
border-top: solid 1px #1b1d21;
margin-top: 315px;
padding-left: 40px;
font-size: 22px;
font-weight: bold;
line-height: 25px;
color: #fbc911;
}
#pointers {
width: 280px;
padding: 0 0 0 20px;
font-size: 16px;
font-weight: bold;
line-height: 20px;
color: #454a4e;
}
#contact-info {
border-top: solid 1px #2f3337;
width: 537px;
margin: 10px auto 0 auto;
text-align: center;
padding-top: 10px;
line-height: 20px;
font-size: 17px;
}
守則頭Web字體:
<link href='http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,700' rel='stylesheet' type='text/css'>
這完全顯示在瀏覽器,但它不是在電子郵件工作。我知道我不能將代碼粘貼到電子郵件中,我需要在瀏覽器中預覽,直接從那裏複製,然後將其粘貼到電子郵件正文中,但不能正確顯示。我正在使用Gmail。
你使用哪種服務器端語言? – kamesh
對於HTML電子郵件,最好的辦法是使用'表格'(想想90年代的網頁)和內聯樣式。 HTML電子郵件中的CSS支持仍然存在一些缺陷,例如,背景圖片在很多電子郵件客戶端中都不起作用。 –