Reliable solution for conditional comments in Outlook.com HTML emails

前端 未结 4 1326
春和景丽
春和景丽 2021-01-03 10:38

I\'ve seen here and elsewhere that a recommended way to set up conditional comments to work with Outlook.com, but because of another known issue detailed below I\'m getting

4条回答
  •  礼貌的吻别
    2021-01-03 11:32

    Those sites that say you can do that are wrong. Outlook.com eats your conditional comments, and anything inside of them. Gave me quite a headache for a while.

    For things where you need to use conditional comments, I found the best thing to do was to have the regular conditional comment section, but also include another table row / column or what have you with a class like class="outlookcom" (on the td) and hide it with display:none. Then, in your