2017-10-04 1664 views
0

是否可以垂直合併兩個單元格並將文本保留在Outlook 2016中?如何在Outlook中垂直合併單元格

1. Step 1

2.Click合併單元

Click merge cells

  • 文本消失 enter image description here
  • 可替代地,它似乎不可能讓這張表在電子郵件中正確顯示(在記事本+中) +,選擇通過Outlook運行/發送),但是當在瀏覽器中查看時,它看起來很好。

    <html> 
    <table class="tg" border="1"> 
        <tr> 
        <th class="tg-yw4l">Type</th> 
        <th class="tg-yw4l">Power</th> 
        <th class="tg-yw4l">Torque</th> 
        </tr> 
        <tr> 
        <td class="tg-yw4l" rowspan="2">Car</td> 
        <td class="tg-yw4l">120hp</td> 
        <td class="tg-yw4l">100nm</td> 
        </tr> 
        <tr> 
        <td class="tg-yw4l" colspan="2">Has 4 wheels<br></td> 
        </tr> 
    </table> 
    </html> 
    

    最後,我瞭解到Outlook 2007,它使用Word(!)來呈現HTML,而不是Internet Explorer。然而,當用word查看這個html時,會出現標題「Car」,但不在Outlook中。

    編輯:我剛剛重新啓動,讓辦公室安裝其更新,現在原來的電子郵件和表格合併工作正常。

    +0

    遠離rowspan和colspan。正如你在Outlook中發現它的錯誤。試試這個:https://i.stack.imgur.com/fZcQf.png。紅色框顯示了表結構應如何適用於所有電子郵件客戶端。 – Syfer

    +0

    謝謝,如何在不使用行跨的情況下實現該結構? –

    回答

    1

    以下是實現此目的的一種方法。刪除col跨度和rowspans你需要求助更多的表格,但你可以確定它會在所有設備上呈現相同的結果。

    <table class="tg" border="1"> 
     
        <tr> 
     
        <th class="tg-yw4l">Type</th> 
     
        <th class="tg-yw4l"> 
     
        <table border="1"> 
     
        <tr> 
     
        <th>Power</th><th>Torque</th> 
     
        </tr> 
     
        </table> 
     
        </th> 
     
        </tr> 
     
        <tr> 
     
        <td class="tg-yw4l" align="center" valign="middle"> 
     
    
     
         <table class="tg" border="1"> 
     
         <tr> 
     
         <td align="center" valign="middle">Car</td> 
     
         </tr> 
     
         </table> 
     
    
     
        </td> 
     
        <td> 
     
         <table border="1"> 
     
         <tr> 
     
         <td>120hp</td><td>100nm</td> 
     
         </tr> 
     
         </table> 
     
         <table class="tg" border="1"> 
     
         <tr> 
     
          <td class="tg-yw4l">Has 4 wheels<br></td> 
     
         </tr> 
     
         </table> 
     
        </td> 
     
        </tr> 
     
    </table>

    希望這是你所追求的。

    乾杯

    相關問題