display:none doesn't work on Outlook 2007

后端 未结 12 1750
鱼传尺愫
鱼传尺愫 2020-12-15 23:24

I want to send an e-mail from our system to customers, where some tags should be hidden to them. I\'ve set the following CSS:

.hidden { display: none; }
         


        
12条回答
  •  旧时难觅i
    2020-12-16 00:06

    how about remove the tags with "display:none;" with code. i use string.split the html string String.split(" and StringBuilder sb. then if-else. if the split string does not .contains("display:none;") then append to stringbuilder sb.append(String). make sure to put back the " , so sb.append(". u might want to exclude several split string, such as null split string,or which contains tags("

    ," ).

    提交回复
    热议问题