Microsoft Word 2016 Mail Merge aus HTML-Datei entfernt Formatvorlagen von td-Tags

347
Scott

Wenn ich Seriendruck von einer HTML-Datei durch Öffnen mit Word mache, scheint es, dass Stile von jedem Element entfernt werden. Es scheint auch, dass die Zeilenhöhe geändert wird und die Vorlage falsch angezeigt wird. Hat jemand dieses Problem schon einmal durchgemacht? Ist Microsoft Word nicht mit HTML kompatibel?

Vor

<td class="text-button" style="color:#4ec7ff; font-family:'Roboto', Arial,sans-serif; font-size:14px; line-height:18px; border:2px solid #4ec7ff; padding:12px 30px; text-align:center; border-radius:24px;"><a href="https://example.com/my-page/" target="_blank" class="link4" style="color:#4ec7ff; text-decoration:none;"><span class="link4" style="color:#4ec7ff; text-decoration:none;">READ MORE &nbsp; <img src="https://example.com/wp-content/uploads/2018/10/myimage.jpg" alt="" width="15" height="13" border="0"></span></a></td> 

Nach dem

<td style="border: solid #4EC7FF 1.5pt; padding: 9.0pt 22.5pt 9.0pt 22.5pt;"><p class="oneComWebmail-MsoNormal" style="text-align: center; line-height: 13.5pt;" align="center"><span style="font-size: 10.5pt; font-family: &quot;Arial&quot;,sans-serif; color: #4EC7FF;"><a href="https://example.com/mypage/" target="_blank"><span class="oneComWebmail-link4"><span style="color: #4EC7FF;">READ MORE &nbsp; </span></span><span style="color: #4EC7FF;"><img id="oneComWebmail-_x0000_i1032" src="https://example.com/wp-content/uploads/2018/10/myimage.jpg" alt="https://example.com/wp-content/uploads/2018/10/myimage.jpg" width="19" height="10" border="0"></span></a></span></p></td> 

Wie Sie sehen, wurde der Grenzradius entfernt und zusätzlicher Code wurde hinzugefügt, nachdem Microsoft Word Mail Merge durchlaufen hatte. Außerdem wurden meine Klassen ersetzt. Wie kann ich dieses Problem beheben?

0

0 Antworten auf die Frage