Outlook 2013 Ignores font-family

前端 未结 7 1618
长情又很酷
长情又很酷 2021-02-08 08:25

What is the best way to specify the font-family when coding emails for Outlook 2013? I have found that font-family is ignored when it is added inline like this:

         


        
7条回答
  •  耶瑟儿~
    2021-02-08 08:38

    An effective way to force Outlook 2013 to use specified font stack is to wrap the text in question in a and to use !important when defining the font-family. Outlook will still remove any Google fonts that are defined in the head, but other email clients will use them. Here is an example:

    
    
    
    
    
    
    This will always be Helvetica.
    Outlook will display Times New Roman. Others will display Helvetica or Indie Flower.
    Outlook will display Helvetica, others will display Indie Flower.

    This came from this awesome article: https://www.emailonacid.com/blog/article/email-development/custom-font-stacks-in-outlook

提交回复
热议问题