【发布时间】:2021-04-06 19:20:54
【问题描述】:
我正在开发一个电子邮件模板。在 Outlook 电子邮件中查看时,单词会分成两行并带有连字符。我在“td”标签上尝试了很多不同的 css 属性,但它什么也没做。
这根本无法控制吗?
<tr>
<td align="center"
style="text-transform: initial;
letter-spacing: 0;
font-size:40px;
line-height: 48px;
font-weight: 700;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
word-break: break-word;
-webkit-hyphens: none;
-moz-hyphens: none;
hyphens: none;
border-collapse: collapse;">
<div>Lorem Ipsum is simply dummy text of the printing and typesetting industry.
</div>
</td>
</tr>
<!--This is just a spacer-->
<tr>
<td style="-webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; mso-table-lspace: 0pt; mso-table-rspace: 0pt; word-break: break-word; -webkit-hyphens: none; -moz-hyphens: none; hyphens: none; border-collapse: collapse; line-height:20px; font-size:20px" height="20px">
</td>
</tr>
<tr>
<td align="center"
style="-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
mso-table-lspace: 0pt;
mso-table-rspace: 0pt;
word-break: break-word;
-webkit-hyphens: none;
-moz-hyphens: none;
hyphens: none;
border-collapse: collapse;
line-height: 30px;
letter-spacing:0.02em;
font-size:17px;
line-height:30px;">
<div>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</div>
</td>
</tr>
【问题讨论】:
标签: html css outlook html-email hyphenation