<td>
要素内にテキストを折り返す必要がありますが、table-layout
プロパティを使用することはできません。出力はhtml電子メール本文になり、Outlookはtable-layout
プロパティをサポートしません。テーブルレイアウトのないテーブルデータのラッピング?
<td>
要素内にテキストを折り返す別の方法がありますか、コードの改行と測定を手動で行う必要がありますか?ここで
私はacheiveしようとしているものの例である:
td {
border: solid black 1pt;
font-family: arial;
font-size: 10pt
}
thead td{
text-align:center;
font-weight:bold;
}
table {
border-collapse: collapse
}
<html>
<body>
<table style="width:35pt;height:24pt;table-layout:fixed">
<thead>
<tr>
<td style="width:35pt;height:12pt">Good</td>
</tr>
</thead>
<tbody>
<tr>
<td style="width:35pt;height:12pt;word-wrap:break-word">Costingly Cost Cost</td>
</tr>
</tbody>
</table>
<div style="height:50pt"></div>
<table style="width:35pt;height:24pt;">
<thead>
<tr>
<td style="width:35pt;height:12pt">Bad</td>
</tr>
</thead>
<tbody>
<tr>
<td style="width:35pt;height:12pt" nowrap>Costingly Cost Cost</td>
</tr>
</tbody>
</table>
</body>
</html>
このメソッドにはtry:[HTML TD wrap text](https://stackoverflow.com/questions/1057574/html-td-wrap-text)を指定します。私は電子メールではなく、一般的なテーブルを知っています。 – Syfer
残念ながら、これは良いことではありません。提案されたすべてのソリューションは、 'table-layout'または' max-width' CSSプロパティのどちらかを使用していました。どちらもOutlookでサポートされていません。 –
これはメールのためのものです:https://stackoverflow.com/questions/10096012/break-long-words-in-html-email-in-outlook-2010 – Syfer