나는 당신이 상상할 수 있는 가장 머리를 긁는 시나리오에 직면했습니다.
배경: SAAS 회사의 경우 MandrillApp을 거래 메일 서비스로 활용하여 아름다운 형식과 문서 유형 등을 선언하는 거래 환영 이메일을 발송하고 있습니다.
문제: 우리가 직면한 문제는 iOS7에서 이메일의 HTML 소스가 보낸 사람 및 타임스탬프 아래의 미리보기 섹션에 표시된다는 것입니다.
시도한 솔루션:
- 문서 유형을 완전히 제거하려고 시도하여 모든 HTML이 표시되었습니다.
- 문서 유형을 XHTML 1.0에서 HTML 5로 변경했습니다.
- 프리헤더에 추가되었습니다. 작동하지 않았습니다
암호:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tbody>
<tr>
<td align="center" valign="top" style="padding:0 0 20px">
<table width="830" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td align="center">
<p style="padding:30px 0 1px">
<font face="Helvetica Neue, Arial, Helvetica, sans-serif" size="6" color="#323232" style="line-height:1;font-size:34px;font-weight:300">
Some Text
</font>
</p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</body>
</html>
어떤 도움이라도 정말 감사하겠습니다!
답변1
특히 아래에 표시된 tr에서 HTML을 수정해도 미리보기가 여전히 잘못된 것처럼 보입니까?
<tbody>
<tr>
<td align="center">
<p style="padding:30px 0 1px">
<font face="Helvetica Neue, Arial, Helvetica, sans-serif" size="6" color="#323232" style="line-height:1;font-size:34px;font-weight:300">
Some Text
</font>
</p>
</td>
-- You're missing </tr> here --
</tbody>
아니면 여기에 질문을 입력하는 데 오류가 있었나요?