Gmail wraps certain HTML elements in a class called im

后端 未结 9 2147
醉梦人生
醉梦人生 2021-02-02 05:38

I have been testing out an HTML e-mail process I\'ve created recently. But as of lately, when I open the e-mail in Gmail, I\'m noticing that certain elements are wrapped in a c

相关标签:
9条回答
  • 2021-02-02 06:07

    Please use styles on your page:

    div.adm {  display: none !important;}
    div.h5 { display: block !important;}
    
    0 讨论(0)
  • 2021-02-02 06:11

    Inside my main table I created, as the last child add:

    <div style="display:none;">1</div>
    

    and the number 1 increments each time. I am generating the content with js using a template string

    `<div style="display:none;">${new Date().toString()}</div>`
    

    You will also need to add style="color:#000;" to the parent. This will prevent the entire email as showing as quoted, and hence not color the text with the .im class

    0 讨论(0)
  • 2021-02-02 06:18

    You ignore style of im class on this way

    <b style="color:black;">Some text</b>
    

    Some text does not have purple color

    0 讨论(0)
提交回复
热议问题